Setup Your Date Field for Good Parsing
Best Practices for your date field settings.
Last updated
Was this helpful?
Best Practices for your date field settings.
Last updated
Was this helpful?
This module is built on top of day.js, which is the recognized standard for JS date-time formatting. It parses your current date content automatically, and handles the formatting, date math, and localization as well.
Unfortunately dates are not globally standard- a common example is month-day-year vs. day-month-year conventions that different countries have.
Does 01-03-2025 mean Jan 3rd, or March 1st? It depends on where you are.
To ensure that day.js is parsing the date correctly, the best practice is to use an international convention close to ISO8601.
ISO8601 uses a YMD convention, e.g. 2025-03-01, which will always be able to parse as March 1st, 2025.
We highly recommend that you use this convention to ensure good parsing.
For CMS-stored dates, Webflow offers a range of formats. The best date format for this is halfway down the list and is shown here.
Use either...
YYYY-MM-DD HH:mm
or YYYY-MM-DD
The first option works for all uses you might have. The second works if you do not care about the time portion.