Convert a date object to a string in JavaScript
If you want to convert a date object to a string in JavaScript and you use jQuery, then you can use the function $.datepicker.formatDate. The following QUnit test will succeed: /// <reference path="Scripts/qunit.js"/> ///