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.
9163be77c2abb8146d6e7ad48af58553?d=identicon&s=25 Bharat Ahluwalia (Guest)
on 2006-06-01 11:14
(Received via mailing list)
From: sean colquhoun <seancolquhoun@gk-a.com>
> Subject: [Rails] How do I get today's date?
> To: rails@lists.rubyonrails.org
> Message-ID: <819bdc40592ce126049f378d9b43bc0e@ruby-forum.com>
> 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.