Re: DateTime.

Alexander Klaiber
Mon, 04 Dec 2006 10:12:58 -0000

Time.now.strftime("%Y-%m-%d")
Format the Timestamp in to a SQL Time String.


Ram schrieb:
>
>     Hi,
>
>     rows = Table.find(:all,
>                       :conditions => ["? BETWEEN start_time AND
> end_time",
>                                      DateTime.now])
>
>     doesn''t work??
>
>     Thanks,
>     Ram
>