Displaying Date in ROR (.rhtml) files?

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

If you wanna use those strings you used in PHP to display the date in some particular way - Class: Time (Ruby 3.1.2).