Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
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.
hi all, any other shorter method to get month day?Select day(dateadd(day, -1,dateadd(month, datediff(month, 0, '2010/04/01')+1,0)))Hope can help...but advise to wait pros with confirmation...
Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)