> Hi Sukeerthi, Better u change your rails version, Mine is rails 1.2.3,
> The problem what you have sent its working fine.
> 
> deepac@deepa-UBUNTU-7:~/workspace/srishti$ script/console
> Loading development environment.
>>> Time.now
> => Mon Feb 25 13:03:46 +0530 2008
>>> a = Time.now
> => Mon Feb 25 13:04:07 +0530 2008
>>> a.to_date
> => #<Date: 4909043/2,0,2299161>
>>> Time.now.to_date
> => #<Date: 4909043/2,0,2299161>
> :0)

Okay deepa let me c that..
Thanks for ur reply
-- 
Posted via http://www.ruby-forum.com/.