Oct 3, 2006 #1 Mongr1l Programmer Mar 6, 2006 179 US Is there a function in sql that formats the date? I'm trying to convert the dates in my table from 'DD-MMM-YYYY' to 'MMDDYY'. Please tell me there's a simple way to do this. mongr1l
Is there a function in sql that formats the date? I'm trying to convert the dates in my table from 'DD-MMM-YYYY' to 'MMDDYY'. Please tell me there's a simple way to do this. mongr1l
Oct 3, 2006 1 #2 SQLDenis Programmer Oct 1, 2005 5,575 US select convert(varchar(10),getdate(),101) no slashes? select replace(convert(varchar(10),getdate(),101),'/','') Denis The SQL Menace SQL blog:http://sqlservercode.blogspot.com/ Personal Blog:http://otherthingsnow.blogspot.com/ Upvote 0 Downvote
select convert(varchar(10),getdate(),101) no slashes? select replace(convert(varchar(10),getdate(),101),'/','') Denis The SQL Menace SQL blog:http://sqlservercode.blogspot.com/ Personal Blog:http://otherthingsnow.blogspot.com/