Ever wanted to get in MSSQL the current date in a "yyyy-mm-dd 00:00:00.000" format?

Maybe there is a better solution, but here is the one i know about:



Select Convert(datetime, Convert(varchar(20), GetDate(), 112), 120)