Date and time

1 min read

The Luxon library is available for handling dates. An example to get the current date is:

DateTime.now().toISO();

The output is in ISO8601 format.

This library makes it easy to add date calculations, for example:

DateTime.now()
 .plus({day: 1})
 .toISO();

Please refer to the Luxon documentation for a comprehensive usage guide.