akshay1188 akshay1188 - 3 months ago 9
Ruby Question

How to display the current date in "mm/dd/yyyy" format in Rails

In my view I want to display the current date in "mm/dd/yyyy" format.

Answer
<%= Time.now.strftime("%m/%d/%Y") %>