Displaying Date in ROR (.rhtml) files?

I know in PHP, it’s uses <?php date(Y); ?> to display the current year.

How would I do it in an ROR’s .rthml file?

<%= Time.new().year %>

You’re the greatest. Thanks, Kates :slight_smile:

If you wanna use those strings you used in PHP to display the date in
some particular way -
class Time - RDoc Documentation.

On Jun 14, 10:05 am, Bob S. [email protected]