Guys
I need a simple way to get a chunk of 'month to date' data from a sqlserver database?
I'm currently using:
MTA.DateCreated between getdate() - (day(getdate()-1) and getdate()
MTA.DateCreated being a datetime field
That returns everything from the first of the month but at the current time, not 00:00:00.
Any clues?
Peter
