How do I format/customize the Date class in Rails?
In my view, I want it to display Thursday, February 18, 2016.
Use strftime
In your case it would be something like this:
somedate.strftime("%A, %B %d, %Y")
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