Feb 4, 2004 #1 zishan619 Programmer May 28, 2003 284 MX Hi I need to know how to convert 01/01/2004 12:00:00 pm to 01/01/04 in T-sql. Thanks
Feb 4, 2004 #2 JohnDTampaBay Programmer Jul 12, 2002 986 US Check out CONVERT or CAST in BOL. --Angel ----------------------------------- Behold! As a wild ass in the desert go forth I to do my work. --Gurnie Hallock (Dune) Upvote 0 Downvote
Check out CONVERT or CAST in BOL. --Angel ----------------------------------- Behold! As a wild ass in the desert go forth I to do my work. --Gurnie Hallock (Dune)
Feb 4, 2004 #3 JayKusch MIS Oct 30, 2001 3,199 US declare @TestDate DateTime set @TestDate = '01/01/2004 12:00:00 pm' print Convert(Char,@TestDate,1) Thanks J. Kusch Upvote 0 Downvote
declare @TestDate DateTime set @TestDate = '01/01/2004 12:00:00 pm' print Convert(Char,@TestDate,1) Thanks J. Kusch