Oracle Tutorial

What is Oracle
SQL Keywords

Oracle Wildcards

Oracle Wildcards

Oracle Aliases

Oracle Aliases

MySQL Tutorial

MySQL Tutorial

PL/SQL Tutorial

PL/SQL Tutorial

Oracle Interview Questions

Oracle Interview Questions and Answers


Oracle Date/Time Functions

Oracle functions are built into Oracle and are available for use in various appropriate Oracle statements. You can also create your own function using PL/SQL.

Function Description
ADD_MONTHSReturns a date with a specified number of months added.
CURRENT_DATEReturns the current date in the time zone of the current SQL session as set by the ALTER SESSION command.
CURRENT_TIMESTAMPReturns a TIMESTAMP WITH TIME ZONE value.
DBTIMEZONEReturns the database time zone as a time zone offset (in the following format: '[+|-]TZH:TZM') or a time zone region name.
EXTRACTExtracts a value from a date or interval value.
LAST_DAYReturns the last day of the month based on a date value.
LOCALTIMESTAMPReturns the current date and time in the time zone of the current SQL session as set by the ALTER SESSION command.
MONTHS_BETWEENReturns the number of months between date1 and date2.
NEW_TIMEConverts a date from time zone1 to a date in time zone2.
NEXT_DAYReturns the first weekday that is greater than a date.
ROUND (dates)Returns a date rounded to a specific unit of measure.
SESSIONTIMEZONEReturns the current session's time zone as a time zone offset (in the following format: '[+|-]TZH:TZM') or a time zone region name.
SYSDATEReturns the current system date and time on your local database.
SYSTIMESTAMPReturns the current system date and time on your local database.
TRUNC (dates)Returns a date truncated to a specific unit of measure.
TZ_OFFSETReturns the time zone offset of a value.