I'm using Date.today.month to display the month number. Is there a command to get the month name, or do I need to make a case to get it?
Date.today.month
Date::MONTHNAMES[Date.today.month] would give you "January". (You may need to require 'date' first).
Date::MONTHNAMES[Date.today.month]
require 'date'
2.1m questions
2.1m answers
60 comments
57.0k users