Try: declare @myCurrDate datetime declare @myEOM datetime
set @myCurrDate = getdate() set @myEOM = dateadd(d, -(day(dateadd(m, 1, @myCurrDate) + 1)), dateadd(m, 1, @myCurrDate)) Steve -----Original Message----- From: Eric Creese [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 8:22 AM To: CF-Talk Subject: SQL quickie I want to be able to take a value of getdate() and then from that determine the last day of the month that getdate() is in. I will be doing this in a stored procedure. For instance, today is 7/7/2003 I want to output 7/31/2003 to the next part of the procedure. Eric ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

