Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 E-mail Us
 Oracle Articles

 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog

 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Oracle Support

 SQL Tuning

 Oracle UNIX
 Oracle Linux
 Remote s
 Remote plans
 Application Server

 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S


 Consulting Staff
 Consulting Prices
 Help Wanted!


 Oracle Posters
 Oracle Books

 Oracle Scripts

Don Burleson Blog 







Oracle Date Functions

Oracle Tips by Burleson Consulting

SYSDATE() is, perhaps, the most commonly used Oracle date function provided by SQL*Plus.

The Oracle date function SYSDATE() returns the current date and time in the default Oracle date format. The default format for the date returned is


It’s very common to use the Oracle date function SYSDATE() in conjunction with to_char(). For example,


This Oracle date function returns a string containing not only the current date, but also the current time down to the second. The most common uses of SYSDATE() don’t use a date format model:

dStartDate := SYSDATE;

Other Oracle Date Functions

Oracle date function - months_between (l,e)

This Oracle date function returns the months between two dates.  If I wanted to know how many months an employee has worked for the company, I can use this Oracle date function.  There is an emp_hire_date in the emp table.

Notice that this Oracle date function returns the fraction of a month.  You could use trunc or round to make the results more readable. 


Oracle date function - add_months (d,n)

The add_months Oracle date function gives you the same day, n number of months away.  The n can be positive or negative.


Oracle date function - last_day (d)

The last_day Oracle date function returns the last day of the month of the date d.  If you want to find the first day of the next month, simply add one to the last_day results.


Oracle date function - next_day (d, day_of_week)

The next_day Oracle date function returns the date of the day_of_week after date d.  day_of_week can be the full name or abbreviation.  Below, we get the date for next Monday, next Friday, and the first Tuesday of next month. 

Related Date Functions Articles:

Date Functions
Alphabetic Functions





oracle dba poster

Oracle performance tuning software 
Oracle Linux poster


Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  and include the URL for the page.


Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


Copyright ? 1996 -  2014

All rights reserved by Burleson

Oracle ? is the registered trademark of Oracle Corporation.