Date handling
Last updated
Was this helpful?
Last updated
Was this helpful?
Day.js is a lightweight JavaScript library for parsing, validating, manipulating, and formatting dates and times, designed to be a simpler and smaller alternative to Moment.js.
Day.js is already included in Lowcoder, so you can directly begin using it to work with dates and times by creating Day.js objects using dayjs()
. This function accepts various formats, including strings, Date objects, and UNIX timestamps, allowing for flexible date and time manipulation such as adding or subtracting time, formatting dates, and comparing dates.
To enhance Day.js's functionality, developers can utilize its plugin system, which allows for the inclusion of additional features not available in the core library.
Since Lowcoder Version 2.3.1, we load all DayJS plugins automatically
You can use Day.js Plugins at all places in Lowcoder that support {{ }} Handlebar notation.