Erick, Check out this: http://www.ruby-doc.org/core/classes/Time.html#M000237 Hope that helps you, Adrian Madrid On 10/14/05, Erick Sasse <esasse-/E1597aS9LRfJ/NunPodnw@public.gmane.org> wrote:> > How can I format a date and time to display? > I want to display using this format: "dd/mm/yyyy hh:mm". > Thanks! > Erick > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > >-- Adrian Esteban Madrid aemadrid-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Perfect! Thanks! Erick ________________________________ De: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] Em nome de Adrian Madrid Enviada em: sexta-feira, 14 de outubro de 2005 21:44 Para: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Assunto: Re: [Rails] Date and time display format Erick, Check out this: http://www.ruby-doc.org/core/classes/Time.html#M000237 Hope that helps you, Adrian Madrid On 10/14/05, Erick Sasse <esasse-/E1597aS9LRfJ/NunPodnw@public.gmane.org> wrote: How can I format a date and time to display? I want to display using this format: "dd/mm/yyyy hh:mm". Thanks! Erick _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails -- Adrian Esteban Madrid aemadrid-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org _______________________________________________________ Promoo Yahoo! Acesso Grtis: a cada hora navegada voc acumula cupons e concorre a mais de 500 prmios! Participe! http://yahoo.fbiz.com.br/
And what about changing the default display format for time values? Erick ________________________________ De: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] Em nome de Adrian Madrid Enviada em: sexta-feira, 14 de outubro de 2005 21:44 Para: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Assunto: Re: [Rails] Date and time display format Erick, Check out this: http://www.ruby-doc.org/core/classes/Time.html#M000237 Hope that helps you, Adrian Madrid On 10/14/05, Erick Sasse <esasse-/E1597aS9LRfJ/NunPodnw@public.gmane.org> wrote: How can I format a date and time to display? I want to display using this format: "dd/mm/yyyy hh:mm". Thanks! Erick _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails -- Adrian Esteban Madrid aemadrid-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org _______________________________________________________ Promoo Yahoo! Acesso Grtis: a cada hora navegada voc acumula cupons e concorre a mais de 500 prmios! Participe! http://yahoo.fbiz.com.br/