How to add time to a date in Sybase? -
i'd take current date in sybase , set time 13:30:00.
let do
select getdate() 12/5/2014 4:06:24.670 pm want return 12/5/2014 13:30:00 pm
how transform that?
i did not have time test suggest convert date part of getdate() mm/dd/yyyy , add "13:30:00 pm" before convert string datetime object.
select convert(datetime,convert(varchar, getdate(), 101) + "13:30:00 pm")
Comments
Post a Comment