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") |
5 datetime.strptime(date, "%Y-%m-%d"), | |
6 "%B %d, %Y") | |
LEFT | RIGHT |