boutique replica bags up ideas

the best replique rolex and prices here.

julia highlight 99j hair color 10a quality straight human hair lace front wigs 8 - 24 inches pre plucked hairline 13x4 inches lace front brazilian wig onlinefor sale

Handle JSON dates returned by ASP.NET AJAX

Updated on     Kisan Patel

Problem:

When working with ASP.NET Web API or any other web service, you have to work with JSON data that is returned for Date data types and you have getting a string back that looks like this:

\/Date(1442255400000)\/

Solution:

var date = new Date(parseInt("\/Date(1442255400000)\/".substr(6)));

The substr function takes out the “/Date(” part, and the parseInt function gets the integer and ignores the “)/” at the end. The resulting number is passed into the Date constructor.

Source:
http://stackoverflow.com/questions/206384/format-a-microsoft-json-date


ASP.NET MVC JavaScript

Leave a Reply