cancel
Showing results for 
Search instead for 
Did you mean: 

Date Displayed incorrectly -- SAP Design Studio

former_member778930
Discoverer
0 Kudos

Hello

I am using SAP Business Objects Design Studio 1.6 (SP7), and have written script to display "Today's Date".

******** When I execute this dashboard locally, i.e (highlighted in below image1), the date is displayed correctly (today is 25/11/2021) (Image 1A)

****** But the same this when executed on SAP HANA, i.e (highlighted in below image2) the date is displayed incorrectly. (today is 25/11/2021) (Image 2)

Please help me with the solution.

Thank You.

Accepted Solutions (0)

Answers (3)

Answers (3)

ThorstenHoefer
Active Contributor
0 Kudos

Hi Maniish,

can you try to set the format option in the binding like:

<Text text="{ path: '/currentDate',
              type: 'sap.ui.model.type.Date',
              formatOptions: { pattern: 'yyyy-MM-dd' }
            }" />
former_member778930
Discoverer
0 Kudos

Thanks Dot.

I have checked all the settings, they are correct.

Moreover, When i execute it locally or on SAP HANA, they are getting opened in same brower.
For locally it is displayed correctly, but for SAP HANA it is incorrect.

Thank You.

DotEiserman
Advisor
Advisor
0 Kudos

Hi Manish,

The date format is typically related to the user locale settings, for e.g. language settings in Browser. Can you check this in the browser that opens?

Thanks

Dot