Jump to content

DateTime format is changing from Spotfire analyst to web version


PBR
Go to solution Solved by Andreas,

Recommended Posts

Hello,

I am using Spotfire Analyst 12.0.4 with the DateTime format 'yyyy-MM-dd h:mm tt'.
However, when I save a copy as a library item and open it in a web browser, the time format changes to 'MM/dd/yyyy h:mm tt',
which causes errors in the dashboard functionalities, particularly in those IronPython scripts that rely on the time format.

I would like to know how I can prevent this change in the DateTime format.

Thank you,

Link to comment
Share on other sites

Hi PBR,

You may try the solution in this article:

Within the code, you need to alter this line of code

if column.Properties.DataType.ToString() == 'Date'

It should be:
 

if column.Properties.DataType.ToString() == 'DateTime” 

Then you can set your preferred format, eg dd/mm/yyyy hh:mm

Kind regards,

David

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...