On Tue, Oct 21, 2008 at 4:21 PM, Nicktabs <[EMAIL PROTECTED]> wrote:
> I need to chage the way dates are input and displayed in my app. This
> is for a european app so the dates need to work as DD/MM/YYYY not the
> America way.

Not a complete solution, but building blocks:

http://ruby-doc.org/core/classes/Date.html#M000655
http://ruby-doc.org/core/classes/Date.html#M000620
http://www.ruby-doc.org/core/classes/Time.html#M000297

puts  Date.strptime("22/10/2008", "%d/%m/%Y").strftime("%d/%m/%Y")

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to