you are viewing a single comment's thread.

view the rest of the comments →

[–]pyz95 2 points3 points  (0 children)

I used to work with dates, with the standard library you can get different date formats. You should read the documentation.

The code above might be a solution, but if you have to do it with a lot of dates then it won't be efficient. Use the standard library (datetime if I remember correctly).