Skip to Content

DatePicker update dateValue (Edm.DateTimeOffset) not setting time zone

Oct 04, 2017 at 07:22 AM


avatar image


I have a a sap.m.DatePicker and its dateValue is binded to a property with type Edm.DateTimeOffset.

<DatePicker displayFormat="medium" dateValue="{Timestamp}"/>

<Property Name="Timestamp" Type="Edm.DateTimeOffset" Precision="0" sap:label="Time Stamp"/>

When receiving data it comes in the following format:


After changing the date from the DatePicker and submit the pending changes it sends the date in the following format:


As you can see the time zone offset is missing.

How to add it in the odata model?

Kind Regards,


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

1 Answer

Best Answer
Vladimir Velinov
Nov 06, 2017 at 10:03 AM


DatePicker works only with dates, although dateValue accepts JSDate object. DatePicker is ignoring the time part. So don't expect to have time offset returned from DatePicker.



Show 1 Share
10 |10000 characters needed characters left characters exceeded

So there is no standard way to send the date to the backend using DateTime property in OData v2 as DateTime is always expecting and time, and the time depends on the timezone?