Is there an easy way (function) other than creating a long string with datepart to get the 1st and last day of a prior month ? Assuming this job runs the 1st day of every month.
Ex. 3/1/10, I need a start date of 02/01/10 and an end date of 02/28/10.
Ex. 01/01/10, I need a start date of 12/1/09 and an end date of 12/31/09.
I am doing a long string manipulation to get this, just wondering if there were any reserved words to pick this off more efficiently.
Remember when... everything worked and there was a reason for it?
Ex. 3/1/10, I need a start date of 02/01/10 and an end date of 02/28/10.
Ex. 01/01/10, I need a start date of 12/1/09 and an end date of 12/31/09.
I am doing a long string manipulation to get this, just wondering if there were any reserved words to pick this off more efficiently.
Remember when... everything worked and there was a reason for it?