On Wed, Dec 28, 2011 at 10:43 AM, Tom Tom wrote:
I initially setup the default setting for the dates in the database to
follow this format: '1979-09-21', but I would like to change this to:
'09-21-1979'.
I initially setup the default setting for the dates in the database to
follow this format: '1979-09-21', but I would like to change this to:
'09-21-1979'.
Let ActiveRecord and your database adapter take care of that.
If your code deals with dates, use Date or DateTime -- not a String
masquerading as a date. :-)
And apologies in advance if I've misunderstood your issue.
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.