Angular UI DatePicker mendapatkan tanggal yang salah
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);
omostan