Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Date in mm/dd/yyyy

Author  Topic 

sqldba20
Posting Yak Master

183 Posts

Posted - 2008-04-29 : 10:56:47
Folks I need help with a date: I would like to get One month old date in mm/dd/yyyy format. The data stored in the table also has timings and for archving purpose I need only mm/dd/yyyy format so that I can specify where TableDate <= 'mm/dd/yy' instead of TableDate <= DATEADD(mm,-1,GETDATE())


Thanks !

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-04-29 : 11:03:44
CONVERT(VARCHAR(10), Col1, 101)



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page
   

- Advertisement -