David Vallner wrote: > Personally, I'd use timestamps to store the information unless it's > necessary to preserve the timezone information. > > Mind you, I think there's a gotcha lurking in the MySQL timestamp not > being the UNIX timestamp per default or something like that. > > David Vallner Yes, I used MySQL timestamp, which is better since it initialize itself if you don't. To Josselin You can use a format string such as the following to format your datetime TimeFmtStr="%Y-%m-%d %H:%M:%S" yourdatetimefield.strftime(TimeFmtStr) to format it. -- Posted via http://www.ruby-forum.com/.