Hi,
I am trying to get the current date in format YYYY-MM-DD 00:00:00.000. I have tried a bunch of options like:
and
But they all give the date/time as: 2013-09-25 16:38:42.770. I am hoping to get 2013-09-25 00:00:00.000 instead. Any idea on the way to do this?
Thanks!
I am trying to get the current date in format YYYY-MM-DD 00:00:00.000. I have tried a bunch of options like:
Code:
select convert(char(25), convert(datetime, getdate(), 101), 121)
and
Code:
select convert(datetime, getdate(), 105)
But they all give the date/time as: 2013-09-25 16:38:42.770. I am hoping to get 2013-09-25 00:00:00.000 instead. Any idea on the way to do this?
Thanks!