Given a Time object, say 2011-03-12 21:58:11 +1100, I would like to get the appropriate Date object (Sat, 12 Mar 2011).
What is the easiest way to achieve this ?
Rails 3 extensions are welcome.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s a to_date method for time that can be useful