I have an application where I would like to store audit information such as Creation Date and Last Updated Date. Both are Date fields.
My application stores the SYSDATE value, but it is only storing the date part(03/28/2004) - no time (HH:MM:SS PM). Is there anyway to get the time included?
I don't know if I'm on the right track, but I've tried
to_char(sysdate, 'MM/DD/YYYY HH:MI:SS PM')
-- Obviously, this errors when trying to store back into a Date field...When I try adding a to_date around it I get 'Not a valid Month'
It seems like there should be an easier way?
Thanks,
Janel
My application stores the SYSDATE value, but it is only storing the date part(03/28/2004) - no time (HH:MM:SS PM). Is there anyway to get the time included?
I don't know if I'm on the right track, but I've tried
to_char(sysdate, 'MM/DD/YYYY HH:MI:SS PM')
-- Obviously, this errors when trying to store back into a Date field...When I try adding a to_date around it I get 'Not a valid Month'
It seems like there should be an easier way?
Thanks,
Janel