Skip to Content
0

Date Range Selection SAPUI5

Mar 21, 2017 at 04:56 PM

220

avatar image
Former Member

Hello!

I am using Date Range Selecion control to select a period in format MM/yyyy - MM/yyyy. I have created entity in SEGW using type Edm.DateTime and ABAP type DATUM.

It depends on time zone, SAPUI5 is showing date subtracting 1 day (If i choose 01/01/2017 - 01/01/2017 it changes to 12/2016 - 12/2016).

I have tried to use "UTC: true" in formatOptions, but does not work. All other Date controls worked.

Appreciate any help.

Regards

Dinarte

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Sergio Guerrero Mar 21, 2017 at 05:04 PM
0

most likely the date is utc (offset by your time zone) the reason you see a prev date is bc the date is 00 hours minus offset.

you can add the offset

Share
10 |10000 characters needed characters left characters exceeded