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

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -