Skip to Content
Oct 21, 2019 at 01:19 PM

Contract End Date (Datetime) different in UI from DB


When I open a Contract I see Contract End Date 09.10.2020 UTC (/SAP_BYD_APPLICATION_UI/crm/sre/contractoif.OIF.uicomponent, /Root/General/GeneralInformation/ContractEndDateTime/@). When I look this data up in Repository Explorer (ValidityPeriod.TimePointPeriod.EndTimePoint.DateTime) I see '2020-10-10T00:00:00Z' and 'UTC'. Same in ABSL when debugging.

When I make a custom BO with the same datetime data type (BASIS.Global.DateTime), I assign this datetime to the BO and then add the element to a screen (I try and mimic the formatting from the Contract OIF) it shows 10.10.2020 UTC.

How do I get the correct Contract End Date to show on my screen? (I don't care at the moment if it's different in debug/Repository Explorer since this is Display Only)