I need to convert a date format from JavaScript to ASP.NET date format.
2012-09-10 12:00PM to /Date(1347442050050-0700)/
The reason for the conversion is because I am sending it back to the server. I extracted the ASP.NET format from the server request, then used moment.js to convert it to a JavaScript date:
moment("/Date(1347442050050-0700)/").format("YYYY-MM-DD hh:mmA");
Is there an efficient method to achieve this?