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!!!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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!!!
Hello Jinesh
you can use below code for get current datetime in excel report.
datetime.strftime(datetime.now(), "%d-%m-%Y")
sheet.write(3, 1, str(date.today()))
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
2
Jun 23
|
3297 | ||
|
2
Mar 17
|
3780 | ||
|
0
Apr 24
|
396 | ||
|
4
Nov 23
|
4242 | ||
|
0
Oct 23
|
377 |