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

Date filters for the NHS prototype kit #433

Open
vickytnz opened this issue Dec 3, 2024 · 1 comment
Open

Date filters for the NHS prototype kit #433

vickytnz opened this issue Dec 3, 2024 · 1 comment
Labels
JavaScript Pull requests that update Javascript code Nunjucks Pull requests that involve nunjucks functionality

Comments

@vickytnz
Copy link
Contributor

vickytnz commented Dec 3, 2024

Adding date filters would help a lot with the kit, for example with consistent formatting.

The GOV.UK prototype kit uses the xgovuk-prototype kit. https://prototype-kit.service.gov.uk/docs/date-filters

This ticket is based on creating functionality first (with a separate ticket for documentation to be created as needed). However if the decision is to just use the xgovuk-prototype-filters then this will become a documentation only ticket.

Work on the more basic filters page also showed that we may want to think about which date module we use nhsuk/nhsuk.service-manual.prototype-kit.docs#158 (comment)

@vickytnz
Copy link
Contributor Author

vickytnz commented Dec 3, 2024

nhsuk/nhsuk.service-manual.prototype-kit.docs#158 (comment) mentions being able to use the Intl.DateTimeFormat api built in to JavaScript and Node without requiring a third party library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JavaScript Pull requests that update Javascript code Nunjucks Pull requests that involve nunjucks functionality
Development

No branches or pull requests

1 participant