Date and time functions

Functions to convert and change date and time objects.

Da­teDif­f(date1, date2)
Gets the difference timespan between two date / datetime objects.
For­mat­tin­g da­tes
Information about formatting dates and time (datetime) with the Docly format function.
new Da­te(­)
Returns current date and time.
Add­Secon­ds(datetime, seconds)
Adding a number of days (positive or negative value) to a specified date.
Add­Minu­te­s(datetime, minutes)
Adding a number of minutes (positive or negative value) to a specified date and time object.
Add­Hour­s(datetime, hours)
Adding a number of days (positive or negative value) to a specified date.
Add­Day­s(date, days)
Adding a number of days (positive or negative value) to a specified date.
Add­Month­s(datetime, months)
Adding a number of days (positive or negative value) to a specified date.
Ad­dYear­s(datetime, years)
Adding a number of days (positive or negative value) to a specified date.