Section9 pages
Date and time functions
Functions to convert and change date and time objects.
Formatting dates
new Date()()Creates a date. Without arguments it returns the current date and time. Differences from browser JavaScript: - new Date(year, month, day …)…addSeconds(datetime, seconds)Adding a number of seconds (positive or negative value) to a specified date and time.addMinutes(datetime, minutes)Adding a number of minutes (positive or negative value) to a specified date and time object.addHours(datetime, hours)Adding a number of hours (positive or negative value) to a specified date.addDays(date, days)Adding a number of days (positive or negative value) to a specified date.addMonths(datetime, months)Adding a number of months (positive or negative value) to a specified date.addYears(datetime, years)Adding a number of years (positive or negative value) to a specified date.dateDiff(date1, date2)Gets the difference timespan between two date / datetime objects.