Skip to Content
avatar image
Former Member

Date Range Selection SAPUI5

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Mar 21, 2017 at 05:04 PM
    -2

    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

    Add comment
    10|10000 characters needed characters exceeded