From: Mike Cahill Date: 2007-06-27T10:00:48+09:00 Subject: Re: DateTime problem teach-a-man-to-fish answer: check http://ruby-doc.org/stdlib/ , under Date quick answer: d = Date.civil(2007,4,2) puts "OUTPUT:\n day = #{d.day}\n month=#{d.month}\n year=#{d.year}" also try out puts d.strftime("%m %d %Y") ----- Original Message ----- From: "Cool Wong" Newsgroups: comp.lang.ruby To: "ruby-talk ML" Sent: Tuesday, June 26, 2007 8:50 PM Subject: DateTime problem > DateArray = ["Apr", "2", "2007"] > > How can i read the month and year in the array??? > > The OUTPUT: > day = 01 > month = 04 > year = 07 > > -- > Posted via http://www.ruby-forum.com/. >