Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need to get date range from last month to now

Status
Not open for further replies.

sandeep0000

Programmer
May 10, 2007
98
US
im using sql sever, would this work if i want to get sts_dt from last month to now?


pgm.sts_dt >=dateadd(month, datediff(month, 0, getdate()) + 1, 0))
 
Why not asking in an SQL Server forum ?
forum183

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top