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

SAP WebIDE - UI5 - Date field is not showing correct date

balaji_vta
Participant
0 Kudos
3,254

Hi,

I am using UI5 version 1.44. There is one date field (Date picker) in the application. Database value for this field is for ex: 21Dec2017. The value of this field at Gateway system is the same as database value while oData service testing. When I use UI5 application, it is showing as 20Dec2017. It is always showing one day less to database value. I tested with different dates. it is responding in the same manner. Did I miss anything? please help me to fix this issue.

Thank you,

Balaji P.

View Entire Topic
balaji_vta
Participant
0 Kudos

I was in chat with SAP and fixed the issue..

In my index file of the project, there are library names..

data-sap-ui-libs="sap.m,sap.ui.commons,sap.ui.table,sap.ui.ux3"

SAP suggested to remove all except "sap.m"

and format for date as below.

<DatePicker value="{path: 'Begda', type: 'sap.ui.model.type.Date', formatOptions: {pattern: 'MM/dd/yyyy', strictParsing: true , UTC: true}}" width="10em" id="Begda" required="true"/>