format data available:
var dateString = "YYYY-MM-DD"; //string in the view you need the format Mmm DD, YYYY (note: "Nov 07, 2015"). Tell me the options, how to format the string.
format data available:
var dateString = "YYYY-MM-DD"; //string in the view you need the format Mmm DD, YYYY (note: "Nov 07, 2015"). Tell me the options, how to format the string.
The closest thing you can get without much suffering is Wed Apr 06 2016 with a call (new Date('2016-04-06')).toDateString() .
If this format does not suit you, I recommend not to reinvent the wheel and use the library of moment.js .
Source: https://ru.stackoverflow.com/questions/520472/
All Articles