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

Accepted Solutions (0)

Answers (5)

Answers (5)

0 Kudos
UxKjaer
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi, Couldn't you just convert it on the backend. Like this?

fahad_saplearning
Participant
0 Kudos

I am currently using 1.44.38..Can someone tell me about the work around to address this issue there?

Regards,

SAP Learner

fahad_saplearning
Participant
0 Kudos

Can someone give me some help here please

former_member590722
Discoverer
0 Kudos

Hi,

This issue has been addressed. It will be updated in SAPUI5 Version 1.56.12 .

Jahanvi Patel

fahad_saplearning
Participant
0 Kudos

Hello Jhanvi,

Thanks for the response. I am currently using 1.44.38..What would be the work around to address this issue?

Regards,

SAP Learner