How do I get today's date?


#1

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