Enrico Teotti wrote:> If I select my date column from the pgadmin I see that in the ddmmyyyy
> form, I''ve specified so in the postgresql config. When I query
from
> rails I get the date in yyyymmdd someone knows why?
> Thanks
> Enrico
>
Enrico,
ActiveRecord will convert this to the Ruby Date type, which will default
to YYYY-MM-DD in its to_s method. You can use the strftime method to
display the date how you wish to display it.
-Scott
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails