" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

How to format a JSON date to a normal date format

Posted on November 23rd, 2015 by NEHA DUBEY

The JSON Date format can be converted to a normal date format using a simple statement. var date=newDate(parseInt(dateInJasonFormat.substr(6)));   where, The parseInt () function will parse the date string -> dateInJasonFormat. The substr function takes the lenght as 6 ie it ignores the initial 6 characters which include /Date(. (From the above date format). Also, […]