Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISO8601 formatDate preset #23

Open
pushred opened this issue Jul 11, 2014 · 0 comments
Open

ISO8601 formatDate preset #23

pushred opened this issue Jul 11, 2014 · 0 comments
Labels

Comments

@pushred
Copy link

pushred commented Jul 11, 2014

Inserting machine readable datetimes is sometimes needed in templates, i.e. for the <time> element's datetime attribute and similar microdata. This can also be useful when scripting. The format of course should be consistent, and ISO8601 is the best choice.

It'd be handy to have a preset for using this format rather than having to specify it by hand, i.e.

{{ formatDate date 'iso8601' }}

vs.

{{ formatDate date '%Y-%m-%dT%H:%M:%S%z' }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant