Forum: Ruby on Rails How do I get today's date?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bharat A. (Guest)
on 2006-06-01 13:14
(Received via mailing list)
From: sean colquhoun <removed_email_address@domain.invalid>
> Subject: [Rails] How do I get today's date?
> To: removed_email_address@domain.invalid
> Message-ID: <removed_email_address@domain.invalid>
> Content-Type: text/plain; charset=utf-8
>
> I know this is a simple question, but i just want to put the current
> day, month, date and year on my website. I still can't figure
> out how to
> read the Rails API. Can anybody help me out? TIA

Date.Today gives u the current date, you can then format it using any of
the date formatting methods.

Regards,
Bharat
This topic is locked and can not be replied to.