Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
5585 Prikazi

Hello,

I want to write current datetime in excel report using pythons xlwt package.

But it shows the time in UTC format rather than my local timezone. So please help me to solve this problem.

Thanks in advance for your help!!!

Avatar
Opusti
Best Answer

Hello Jinesh

you can use below code for get current datetime in excel report.


datetime.strftime(datetime.now(), "%d-%m-%Y")

Avatar
Opusti
Best Answer
sheet.write(3, 1, str(date.today()))

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
jun. 23
4340
2
mar. 17
4630
3
jun. 25
8077
0
apr. 24
1793
4
nov. 23
5840