Angular UI DatePicker dostaje źle datę
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