I am trying to have the current date displayed in a view within my rails app. I'd like the following format: Day of week, Month, Day, Year.
Currently I am using:
<%= Time.now.strftime("%B %d, %Y") %>
This displays everything but the day of the week. How do I add the day of the week?
%A gives the day of the week
Customize how you prefer it!
<%= Time.now.strftime("%B %d, %Y, %A") %>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With