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 2000 Forums
 SQL Server Development (2000)
 To Trace User Activities

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-03-12 : 23:01:00
Sankar writes "What is function used to find out the last date of a purticular month in sql 7?"

Nazim
A custom title

1408 Posts

Posted - 2002-03-13 : 02:44:57

select dateadd(mm,1,getdate())-datepart(d,getdate())


Change getdate() with the date you want to work on.

HTH

--------------------------------------------------------------
Go to Top of Page
   

- Advertisement -