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.
the new date as IOracleDate object
number of days to add
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.
the new date as IOracleDate object
number of months to add
Compares two dates. Returns -1 if d1 < d2, 0 if they are equal, and 1 if d1 > d2.
the result of the comparison as a number between -1 and +1.
first date value
second date value
Gets 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.
number of days between d1 and d2
first date value
date value to compare with
Parse 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.
the new date as IOracleDate object
date represented as a string
Optional
fmt: stringoptional datetime format model
Optional
nlsParam: stringoptional NLS parameter string. Must have the same format as the NLS argument to the TO_DATE SQL function.
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.
Gets the current system date and time as an IOracleDate.
the system date and time as IOracleDate
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.
the date as string
Optional
fmt: stringoptional datetime format model
Optional
nlsParam: stringoptional NLS parameter string. Must have the same format as the NLS argument to the TO_DATE SQL function.
JavaScript API for Oracle type DATE.