Assuming that to day it January 1 2007 when the
following code is and the response is 1. Is there a
way to get back 01? Im also looking to get 01 for
the day. It looks like %m and %d is what Im looking
for but I dont know how to implement the formatting.
t = Time.now
puts t.mon
=> 1
Jeff
···
____________________________________________________________________________________
Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469
Never mind I to got it. It most be putting it in
writing jogs the brain.
t = Time.now
puts t.strftime("%m%d")
Jeff
···
--- Jeffrey Bowen <ja_bowen@yahoo.com> wrote:
Assuming that to day it January 1 2007 when the
following code is and the response is 1. Is there a
way to get back 01? Im also looking to get 01 for
the day. It looks like %m and %d is what Im
looking
for but I dont know how to implement the
formatting.
t = Time.now
puts t.mon
=> 1
Jeff
____________________________________________________________________________________
Be a better Globetrotter. Get better travel answers
from someone who knows. Yahoo! Answers - Check it
out.
http://answers.yahoo.com/dir/?link=list&sid=396545469
____________________________________________________________________________________
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367