Closed zhengqm closed 8 years ago
datetime.now().strftime('%Y-%m-%d')
works fine on both *nix and Windows, while
datetime.now().strftime('%F')
gives ValueError: Invalid format string on Windows.
ValueError: Invalid format string
Both return a string in the format of "year-month-day"
Good idea. :+1:
works fine on both *nix and Windows, while
gives
ValueError: Invalid format string
on Windows.Both return a string in the format of "year-month-day"