Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 from datetime import datetime | 1 from datetime import datetime |
2 | 2 |
3 def humanize_date(date): | 3 def humanize_date(date): |
4 return datetime.strftime( | 4 return datetime.strptime(date, "%Y-%m-%d").strftime("%B %d, %Y") |
Sebastian Noack
2016/02/04 11:31:42
That is not what I meant. You still call the strft
juliandoucette
2016/02/09 16:01:16
Done.
| |
5 datetime.strptime(date, "%Y-%m-%d"), | |
6 "%B %d, %Y") | |
LEFT | RIGHT |