PBR Posted October 10 Share Posted October 10 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 More sharing options...
David Boot-Olazabal Posted October 11 Share Posted October 11 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 More sharing options...
David Boot-Olazabal Posted Monday at 06:06 AM Share Posted Monday at 06:06 AM Also, there is an existing enhancement request for this: https://ideas.spotfire.com/ideas/SPF-I-714 You may want to vote for that idea as well. Kind regards, David Link to comment Share on other sites More sharing options...
Solution Andreas Posted Monday at 07:16 AM Solution Share Posted Monday at 07:16 AM Hi, I think this problem should be done, if you use a Custom Format String in "Column Properties" or any "Format" option for your datetime column. In this case client and web will have the same format of a date time. 1 Link to comment Share on other sites More sharing options...
PBR Posted Wednesday at 07:01 PM Author Share Posted Wednesday at 07:01 PM Thank you very much David and Andreas, The custom formatting fixed the issue. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now