On Jun 1, 9:29 am, Claus-christian Ude <rails-mailing-l...@andreas-
s.net> wrote:
> Frederick Cheung wrote:
> > On May 30, 8:48 am, Colin Law <[email protected]> wrote:
> > If you are expecting dates in a particular format strptime is useful,
> > if not some sort of calendary widget is often a better idea.
>
> > Fred
>
> Well yes, I already do so (calendar_select_date), but I get in the
> controller-function as params the dd.mm.yyyy format. So
> update_attributes convert the date automaticly, but it do it wrong
> (mm.dd.yyyy), therefor I "repair" the Date.parse-Function.
>
if you're guarenteed that the format you get in the controller is
going to be dd.mm.yyyy then strptime is probably the easiest way
(although just tearing the string up with a regexp wouldn't be hard
either)
Fred
> mfg C-C
> --
> Posted viahttp://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
-~----------~----~----~----~------~----~------~--~---