cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Sapui5 one before day problem

former_member489109
Participant
0 Likes
3,678

var sToday = new Date(); //today// example : 20.12.2017

this.getView().byId("mesaiTbdPicker").setDateValue(sToday); // set today to datepicker //20.12.2017

and I sending this data.But i looking data in abap date looking 1 before day. //19.12.2017

I tried this but not worked;

var sToday = new Date();

sToday = sToday + 1;

Please help.

View Entire Topic
Joseph_BERTHE1
Active Contributor
0 Likes

You have to play with the timezone such as CET to get the correct date.