Skip to content

Add filter to format date object into a readable date #227

Open
@chrimesdev

Description

@chrimesdev

Description

For the formatting of dates on the check your answers page in a prototype, I came across this this useful Nunjucks filter to change a number, like 1 "12" or 04, to a month in words: https://github.com/nhsuk/permission-to-contact-prototype/blob/master/app/filters.js#L12

I think this would be useful adding to main prototype kit?

Metadata

Metadata

Assignees

No one assigned

    Labels

    JavaScriptPull requests that update Javascript codeNunjucksPull requests that involve nunjucks functionality

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions