Angular UI datepicker is getting wrong date
service.ConvertDateToJSONDate = function (dateInput) {
if (dateInput === null || dateInput === undefined) {
return null;
}
//return "\/Date(" + dateInput.getTime().toString() + ")\/";
return "\/Date(" + (dateInput.getTime() + 10800000).toString() + ")\/";
};
Usage: service.ConvertDateToJSONDate(SelectedDateObjectToBeConverted);