I am trying to post date value to backend. But the value is sometimes increment/decrement by 1 in sap gateway. I have tried many possible solutions. But no luck. I am working between two time zones EST and IST. How to reoslve this?
var syFormat = sap.ui.core.format.DateFormat.getDateInstance({
pattern: "yyyy-MM-ddTHH:mm:ss",
UTC : true
});
var f = syFormat.format(d);