cancel
Showing results for 
Search instead for 
Did you mean: 

Issue - Date save in database with decrements by one

Former Member
0 Kudos

Hi,

Actually I am using sap.m.DatePicker control in my application. Issue is that when I send the date to the database it automatically decrements the date by one and save the decremented date in database. I am using xsjs for sending the date value in database

Below is the code for sending data to xsjs and xsjs furtur send the data to database

"effective_from": sap.ui.getCore().byId("effectiveFromInput").getDateValue()

Please suggest something. Thanks in Advance.

Thanks & Regards

Somdutt

Accepted Solutions (0)

Answers (1)

Answers (1)

SergioG_TX
Active Contributor
0 Kudos

the issue here is that the date that you are passing back (or even reading from) is saved with the offset from your time zone.. please make sure that the time offset (from GMT) is the correct date.. .and if so.. you can add the offset when reading into your UI.

hope this is what you are seeing