Nervous Penpal Message

    dustjs-helper-formatdate

    1.0.0 • Public • Published

    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

    ..

    Install

    npm i dustjs-helper-formatdate

    DownloadsWeekly Downloads

    14

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • adambene