so i create in my view:
<%=date=Date.today%>
How do i get the name of the month out of the date? I was trying to do sth like
Choose what you want
Date.parse('5-jan-2017').strftime('%B')
Result:
=> "January"
Date.parse('5-jan-2017').strftime('%b')
=> "Jan"
For most of your further date related questions, refer this link http://www.foragoodstrftime.com/