From: khaines@... Date: 2006-11-09T00:50:52+09:00 Subject: Re: Parse date fields from mysql database On Thu, 9 Nov 2006, Bart Braem wrote: > I would like to be able to parse date fields from a MySQL database in order > to get the day, year, hour etc. separately. Which library could do that for > me? I can't think that I would have to parse those dates myself, right? require 'time' parsed_time = Time.parse(mysql_datetime) If the mysql field has a value that is outside the range for Ruby's Time class, you can use DateTime: require 'date' parsed_time = DateTime.parse(mysql_datetime) Kirk Haines