cancel
Showing results for 
Search instead for 
Did you mean: 

Datepicker date is wrong in oData

fahad_saplearning
Participant
0 Kudos

Hello,

I am passing date from sap.m.DatePicker to oData service filter. I have used JSON model bound to date picker to access the date chosen by the user.

My issue is: When I choose 1st Oct 2018 as the date, I see the date as 30th Sep 2018 (20180930 as per SAP backend format) in debug session!! It is always going 1 date behind in Gateway oData service.

What has gone wrong here!!

I tried various approaches like date.setHours(0,0,0,0), date.setUTCHours(0,0,0,0) etc from front end. But my issue was never resolved. I guess it is somethung w.r.to timezone. Can someone please guide me what is the issue here.

Regards, SAP Learner

View Entire Topic
0 Kudos