cancel
Showing results for 
Search instead for 
Did you mean: 

DatePicker Date decrement/increment by 1

former_member190063
Participant
0 Kudos

Hi Folks,

I am facing a date issue when I am working with EST and IST time zone. My date value is increment or decrement by 1 in front end and backend server. I tried using UTC property true. And I am formatting the date using odata getDateTimeInstance. But the issue persists. I am looking for a solution to fix this.

While sending it to backend..I am using this.

var dateFormat = sap.ui.core.format.DateFormat.getDateTimeInstance({
pattern: "yyyy-MM-ddThh:mm:ss",
source: {
pattern: "yyyy-MM-ddThh:mm:ss"
}
});dateFormat.format(myDate);

While receiving to front end

<DatePicker value="{path: 'shipmentLegModel>/shipmentHeader/ERDAT', type: 'sap.ui.model.type.Date', 
formatOptions: {
pattern: 'shipmentLegModel>/dateFormat', 
strictParsing: true, 
UTC: true}}">

Regards

Karthik S

Accepted Solutions (0)

Answers (0)