Apr 11, 2005 #1 millzy7 Programmer Dec 9, 2003 96 US Hi I have a date field but all i am interested in is the time element ie HH:MM:SS. How can i insert into this field a time of 00:45:00. Also how can i retrieve just the time element from the date field? Thanks
Hi I have a date field but all i am interested in is the time element ie HH:MM:SS. How can i insert into this field a time of 00:45:00. Also how can i retrieve just the time element from the date field? Thanks
Apr 12, 2005 1 #2 lewisp Programmer Aug 5, 2001 1,238 GB To create a time in a date field use [tt]To_Date('00:45:00','HH24:MI:SS')[/tt] To read the time back from the field use [tt]To_Char(date_field,'HH24:MI:SS')[/tt] Upvote 0 Downvote
To create a time in a date field use [tt]To_Date('00:45:00','HH24:MI:SS')[/tt] To read the time back from the field use [tt]To_Char(date_field,'HH24:MI:SS')[/tt]
Apr 12, 2005 Thread starter #3 millzy7 Programmer Dec 9, 2003 96 US Thanks lewisp! Works perfect Upvote 0 Downvote