From: Lloyd Linklater Date: 2008-09-13T04:02:25+09:00 Subject: Re: Getting current date I put the testing code in and I feel REALLY stupid. If it is still wrong, I am going to hide under a rock until everyone forgets that I did this. n = Time.now if n.month == 1 d = Time.gm(n.year - 1, 12, n.day) else d = Time.gm(n.year, n.month - 1, n.day) end -- Posted via http://www.ruby-forum.com/.