# DateTime

Object

- [datetime.add()](datetime/add.md) - Adds units of time to a date.
- [datetime.compare()](datetime/compare.md) - Compares to date, to the given optional resolution.
- [datetime.dateFormat()](datetime/dateformat.md) - Formats a date string to a given output
- [datetime.dateTimeFormat()](datetime/datetimeformat.md) - Formats a date/time string to a given output
- [datetime.day()](datetime/day.md) - Determines the day of the month, in a date.
The ordinal for the day of the month, ranging from 1 to 31.
- [datetime.dayOfWeek()](datetime/dayofweek.md) - Determines the day of the week, in a date.
- [datetime.dayOfYear()](datetime/dayofyear.md) - Determines the day of the year, in a date.
- [datetime.daysInMonth()](datetime/daysinmonth.md) - Determines the number of days in a month.
- [datetime.daysInYear()](datetime/daysinyear.md) - Determines the number of days in a year.
- [datetime.diff()](datetime/diff.md) - Determines the number of given date parts between two different dates
- [datetime.firstDayOfMonth()](datetime/firstdayofmonth.md) - Determines the ordinal (day number, in the year) of the first
day of the month in which a given date falls.
- [datetime.hour()](datetime/hour.md) - Gets the current hour of the day.
Ordinal value of the hour, in the range 0 - 23.
- [datetime.LSDateFormat()](datetime/lsdateformat.md) - Formats a date string to a given output using the current sessions locale
- [datetime.LSDateTimeFormat()](datetime/lsdatetimeformat.md) - Formats a date string to a given output using the current locale
- [datetime.LSDayOfWeek()](datetime/lsdayofweek.md) - Returns the day of the week the date represents in locale format
- [datetime.LSTimeFormat()](datetime/lstimeformat.md) - Formats a time string to a given output using the current locale.
- [datetime.millisecond()](datetime/millisecond.md) - Returns the milliseconds of the referenced date
- [datetime.minute()](datetime/minute.md) - Extracts the minute value from a date/time object.
- [datetime.month()](datetime/month.md) - Extracts the month value from a date/time object.
- [datetime.part()](datetime/part.md) - Extracts the given date part from the date object
- [datetime.quarter()](datetime/quarter.md) - Calculates the quarter of the year in which a date falls.
- [datetime.second()](datetime/second.md) - Extracts the ordinal for the second from a date/time object.
- [datetime.timeFormat()](datetime/timeformat.md) - Formats a time string to a given output
- [datetime.week()](datetime/week.md) - From a date/time object, determines the week number within the year.
- [datetime.year()](datetime/year.md) - From a date/time object, gets the year value.

# Categories

[Objects](../../categories/object.md), [Date and time](../../categories/datetime.md)