Construct a new IOracleDate object from date and time components (Gregorian calendar).
year component (-4712 <= y <= 9999)
month component (1 <= m <= 12)
day component (1 <= d <= 31)
hour component (0 <= h <= 23)
minute component (0 <= m <= 59)
second component (0 <= s <= 59)
Construct a new IOracleDate object from date components (Gregorian calendar).
year component (-4712 <= y <= 9999)
month component (1 <= m <= 12)
day component (1 <= d <= 31)
Construct a new IOracleDate object by adding number of days to this date. The result of this function is sensitive to the setting for the NLS_CALENDAR parameter in the current session.
number of days to add
the new date as IOracleDate object
Construct a new IOracleDate object by adding number of months to this date. The result of this function is sensitive to the setting for the NLS_CALENDAR parameter in the current session.
number of months to add
the new date as IOracleDate object
Gets the day component according to the Gregorian calendar.
day component (1 <= d <= 31)
Gets the hour component.
our component (0 <= h <= 23)
Gets the minute component.
minute component (0 <= m <= 59)
Gets the month component according to the Gregorian calendar.
month component (1 <= m <= 12)
Gets the second component.
second component (0 <= s <= 59)
Gets the year component according to the Gregorian calendar.
year component (-4712 <= y <= 9999)
Checks if this has a valid date.
true iff the date is valid
Gets the date of the last day of the month specified by this date. The result of this function is sensitive to the setting for the NLS_CALENDAR parameter of the current session.
a new date set set to the last day of the month
Gets the date of the first weekday named by dayOfTheWeek that is later than this date. The result of this method is sensitive to the NLS_DATE_LANGUAGE parameter of the current session.
a new date set to the first weekday name by dayOfTheWeek that is later than this date.
Converts an IOracleDate to a string and returns it. An optional datetime format model and an optional NLS parameter string can be provided. If no format model and/or no NLS parameter string is provided, the respective default values for the session are used.
If an NLS parameter string is specified, it has the effect of temporarily altering the session's NLS settings for the duration of the call to this method. The NLS parameter string may only set the NLS_DATE_LANGUAGE parameter.
If a datetime format model is specified, it overrides the date format determined by NLS settings.
Optionalfmt: stringoptional datetime format model
OptionalnlsParam: stringoptional NLS parameter string. Must have the same format as the NLS argument to the TO_DATE SQL function.
the date as string
StaticcompareCompares two dates. Returns -1 if d1 < d2, 0 if they are equal, and 1 if d1 > d2.
first date value
second date value
the result of the comparison as a number between -1 and +1.
StaticdaysGets the number of days between two dates. The result of this function is sensitive to the setting for the NLS_CALENDAR parameter in the current session.
first date value
date value to compare with
number of days between d1 and d2
StaticfromParse a date string into an IOracleDate. An optional datetime format model and an optional NLS parameter string can be provided. If no format model and/or no NLS parameter string is provided, the respective default values for the session are used.
If an NLS parameter string is specified, it has the effect of temporarily altering the session's NLS settings for the duration of the call to this method. The NLS parameter string may only set the NLS_DATE_LANGUAGE parameter.
If a datetime format model is specified, it overrides the date format determined by NLS settings.
date represented as a string
Optionalfmt: stringoptional datetime format model
OptionalnlsParam: stringoptional NLS parameter string. Must have the same format as the NLS argument to the TO_DATE SQL function.
the new date as IOracleDate object
StaticsysGets the current system date and time as an IOracleDate.
the system date and time as IOracleDate
JavaScript API for Oracle type DATE.