SQL datetime format

The following conversion options are available for sql datetime format : select convert(char, getdate(), 100) -- mon dd yyyy hh:mmAM (or PM) -- Oct  2 2008 11:01AM select convert(char, getdate(), 101) -- mm/dd/yyyy -- 10/02/2008 select convert(char, getdate(), 102) -- yyyy.mm.dd -- 2008.10.02 select convert(char, getdate(), 103) -- dd/mm/yyyy select convert(char, getdate(), 104) -- dd.mm.yyyy select convert(char, getdate(), 105) -- dd-mm-yyyy select convert(char, getdate(), 106) -- dd ...
More