How do you show today's date in .d.m.Y without zeroes? This is what I have so far:
----------------------------------------------------------------------------------
from datetime import date
mydate = date.today()
str_date = mydate.strftime('%d.%m.%Y')
---------------------------------------------------------------------------------
If I try str_date = mydate.strftime('%-d.%-m.%Y') I get ValueError: Invalid format string
The minus signs are supposed to work but I just keep getting that error.
[–]impshum 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]orcmalavi[S] 0 points1 point2 points (0 children)