jquery - Convert Json Date to date -


i have use below code converting json date original date. below code..

    var convertdate = function (jsondate) {             var date = new date(parseint(jsondate.substr(6)));             return date.format("mm-dd-yyyy");        };  alert(convertdate(adata["date"])); 

below error shown in firebug.

 if (isnan(date)) throw syntaxerror("invalid date"); 

any help...

date parsing works this:

 var dateobject = new date("12-15-2012 01:23"); 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -