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

Sapui5 date one day missing

0 Likes
8,532

I want to show the date I got with DatePicker in a section in a table. But the date is missing 1 day.


I tried many methods:
https://answers.sap.com/questions/409976/sap-webide---ui5---date-field-is-not-showing-corre.html

https://answers.sap.com/questions/323063/date-value-is-getting-reduced-by-one-day-while-pas.html

But it didn't work. What is your suggestion?

View Entire Topic
Jagtar
Participant
0 Likes

Use binding as below it will work
text="{path: 'date', type: 'sap.ui.model.type.DateTime', formatOptions: { strictParsing: true , UTC: true}}

Issue is coming to you because of time zone .Some time server and client have different time zone

I've tried many methods like this but unfortunately it doesn't work.

<Text text="{path: 'Tarih', type: 'sap.ui.model.type.DateTime', formatOptions: { strictParsing: true , UTC: true}}"/>