I am wanting to fix a date issue problem, but I keep losing the time.
startdate = 7/4/0004 11:00:07 PM
I want to replace the '0004' with '2004'.
When I run the following update statement I get
startdate = 7/4/2004
update labtrans_john
set startdate = replace(startdate, '0004', '2004')
where to_char(startdate, 'yyyy') = '0004'
Thanks
startdate = 7/4/0004 11:00:07 PM
I want to replace the '0004' with '2004'.
When I run the following update statement I get
startdate = 7/4/2004
update labtrans_john
set startdate = replace(startdate, '0004', '2004')
where to_char(startdate, 'yyyy') = '0004'
Thanks