Created
October 8, 2009 07:13
-
-
Save jefftriplett/204837 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
format a date in Django to an html5 datetime attribute. | |
I have a feeling I will use this liberally... | |
--> | |
<time datetime="{{ object.publish|date:"Y-m-d\TH:m:sO" }}"></time> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment