2009/9/30 Brijesh Shah <[email protected]>:
>
> You can separate date and time by...
>
> first you need to convert into date format
> datetime=params[:e_date]
> datetime=datetime.to_date
I think there is no need to convert it to a Date, just use strftime on
the DateTime object to show just the date portion.
Colin
> date = date.strftime('%Y-%m-%d')"
>
> I hope this helps u...
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---