system.date
Date Functionsβ
The following functions give you access to test and modify dates.
ποΈ *Between
Calculates the amount of time between two dates.
ποΈ add*
Add or subtract an amount of time to a given date.
ποΈ format
Returns the given date as a string and formatted according to a pattern.
ποΈ fromMillis
Creates a date object given a millisecond value
ποΈ get*
Extracts a unit of time from a date.
ποΈ getDate
Creates a new Date object given a year, month and a day.
ποΈ getTimezone
Returns the ID of the current timezone.
ποΈ getTimezoneOffset
Returns the current timezone's offset versus UTC for a given instant, taking Daylight Savings Time into account.
ποΈ getTimezoneRawOffset
Returns the current timezone offset versus UTC, not taking daylight savings into account.
ποΈ isAfter
Compares two dates to see if date_1 is after date_2.
ποΈ isBefore
Compares two dates to see if date_1 is before date_2.
ποΈ isBetween
Compares two dates to see if a target date is between two other dates.
ποΈ isDaylightTime
Checks to see if the current timezone is using daylight savings time during the date specified.
ποΈ midnight
Returns a copy of a date with the hour, minute, second, and millisecond fields set to zero.
ποΈ now
Returns a java.util.Date object that represents the current time according to the local system clock.
ποΈ parse
Attempts to parse a string and create a Date.
ποΈ setTime
Takes in a date, and returns a copy of it with the time fields set as specified.
ποΈ toMillis
Converts a Date object to its millisecond value elapsed since January 1, 1970, 00:00:00 UTC (GMT)