Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AngularJs: Show name of the month given the month number

I have the month as a number (1,2,3,...) and would like to display the corresponding name. How can I do this?

Is it possible to use {{ date_expression | date[:format] }}

like image 903
user880386 Avatar asked Jan 31 '14 12:01

user880386


1 Answers

Please take a look at the documentation at https://docs.angularjs.org/api/ng/filter/date. There you will see the desired format:

{{date_expression | date:'MMMM'}} 

From the docs:

'MMMM': Month in year (January-December) 
like image 158
dirkk Avatar answered Oct 02 '22 07:10

dirkk