From: Dimitri Aivaliotis Date: 2006-03-15T23:02:29+09:00 Subject: Re: Time object problems - 1.8.2 Hi Greg, On 3/15/06, Greg Lorriman wrote: > I am trying to efficiently get the date part of a Time object. I've just been playing around with Time and Date a bit. I have to ask: why? You can get just the date part much more easily by using a Date object: Date.parse("20-Oct-2005 04:04:00").to_s => "2005-10-20" If you absolutely need a time object out of it, you can use 'facets': require 'facet/date/to_time' Date.parse("20-Oct-2005 04:04:00").to_time => Thu Oct 20 00:00:00 CEST 2005 HTH - Dimitri