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

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -