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.