1.0.0 • Published 9 years ago

dustjs-helper-formatdate v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

Date formatting helper for Dust.js

For Node.js

var dust = require('dustjs-linkedin');
require('dustjs-helpers');
require('dustjs-helper-formatdate');

For the browser

<script src="/js/dust.js"></script>
<script src="/js/moment.js"></script>
<script src="/js/dustjs-helper-formatdate.js"></script>

Use in Dust template

<time>
    {@formatDate date="{myDate}" format="YYYY. MMMM Do HH:mm" lan="en-US"/}
</time>

or with Dust keys:

<time>
    {@formatDate date="{myDate}" format="{formatString}" lan="{locale}"/}
</time>

License

MIT license

..