Oct 23, 2007 #1 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?
Oct 23, 2007 #2 hoinz MIS Jan 29, 2004 944 DE Have a look at other threads in this forum, e.g. from last week: thread186-1417322 Upvote 0 Downvote
Oct 30, 2007 #3 kskid Technical User Mar 21, 2003 1,767 US to_char(sysdate,'hh24:mi') Upvote 0 Downvote
Nov 5, 2007 #4 Beilstwh Programmer Jul 13, 2005 819 US 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 Upvote 0 Downvote
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