Feb-04-2019, 05:50 PM
Hi!
I just got a e-paper display and downloaded a nice script to let it get weather, my schedule and such.
The script does put the date for every schedule entry in the format YYYY-mm-dd, and I've found the code below that I believe puts this out.
I would like to display this time and date in the format 04 feb instead, as now, 2019-02-04.
I've spent hours and hours, and can't get it right. About to loose my mind here... tried every possible combination of datetime.
Best regards!
I just got a e-paper display and downloaded a nice script to let it get weather, my schedule and such.
The script does put the date for every schedule entry in the format YYYY-mm-dd, and I've found the code below that I believe puts this out.
I would like to display this time and date in the format 04 feb instead, as now, 2019-02-04.
I've spent hours and hours, and can't get it right. About to loose my mind here... tried every possible combination of datetime.
due_date = int(datetime.date(int(str(my_task['due']['date']).split('-')[0]), int(str(my_task['due']['date']).split('-')[1]), int(str(my_task['due']['date']).split('-')[2])).strftime('%j')) + (int(str(my_task['due']['date']).split('-')[0]) * 365)I'd be incredibly happy if someone could give me a helping hand here! :)
Best regards!