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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

month to date

Status
Not open for further replies.

sonny1974

Technical User
Feb 25, 2007
161
US
i have sql server and crystal xi

i am going to automate a report

"BI_DTL"."BEN_BGN_DT">= dateadd(day, 14,
dateadd(month, datediff(month, 0, getdate()), 0)
)

how do i change this to month to date
so if the report is ran on may 25th it would be may 1st to may 25th
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top