<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How Can I Determine the Beginning and Ending Date of the Previous Month?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2005/08/11/how-can-i-determine-the-beginning-and-ending-date-of-the-previous-month.aspx</link><description>Hey, Scripting Guy! Given a specific date, how can I determine the beginning and ending date of the previous month? In other words, given 8/11/2005, I need to get back 7/1/2005 and 7/31/2005. -- PH 
 Hey, PH. You know, this was a tough question for us</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: How Can I Determine the Beginning and Ending Date of the Previous Month?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2005/08/11/how-can-i-determine-the-beginning-and-ending-date-of-the-previous-month.aspx#3387426</link><pubDate>Tue, 15 Feb 2011 14:19:39 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3387426</guid><dc:creator>Israel Valencia</dc:creator><description>&lt;p&gt;Cool!&lt;/p&gt;
&lt;p&gt;I liked your solution. Although for the first day of month I modified a bit and used:&lt;/p&gt;
&lt;p&gt;val = now - Day(now) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/p&gt;
&lt;p&gt;val = dateserial(year(val), month(val), 1)&lt;/p&gt;
&lt;p&gt;This way you get a date variable because if you are using a computer with regional settings for date format different to mmddyyyy you would get the month in the place of the day or any other order combination you were not expecting :)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3387426" width="1" height="1"&gt;</description></item></channel></rss>