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.

    1 answer 1

    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 .

    • Thank you, in a moment. Js did =) - NoireHouse