From: Adam Hegge Date: 2011-02-02T22:45:49+09:00 Subject: Re: Is there a Date.now equivalent of Time.now/new? Mike Flint wrote in post #979117: > Hi, > > On Ruby 1.8.7 and 1.9 somewhere (some ARM NAS device). > > Does anyone know if there is a Date.now in 1.9, or one proposed? > > It's a little tedious to go through Date.strptime(Time.now.strftime) > don't you think? Easy enough to extend Date, but why not in Ruby > already? > > Just a thought. Save my fingers and all that. > > Apologies if I'm musing in the wrong zone. > > M Date.today.to_s => "2011-02-02" -- Posted via http://www.ruby-forum.com/.