Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

extract hour from date

Status
Not open for further replies.

ceccina

IS-IT--Management
Nov 18, 2002
22
IT
How can I extract hh:mi from a date filed (dd/mm/yyyy hh:mi) and making time differences?
 
Have a look at other threads in this forum, e.g. from last week:
thread186-1417322
 
It all depends, if you want the time difference between two dates, then simply do some thing like

select sysdate - date_field time_difference
from my_table;

would return the number of days (whole number) and hours/minutes/seconds between the two dates. 1 = 1 day, .5 = 12 hours etc...

Bill
Oracle DBA/Developer
New York State, USA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top