Gita Gayatri Sahoo Posted February 5, 2020 Posted February 5, 2020 I want to format a column (in datetime) to 24 hours datetime format. In analysis, I opened formatting for that column and wrote a custom format string like: MM/dd/yyyy HH:mm:ss. But the value is always showing in default format i.e. in 12 hours. I'm using presto database and there the column values are in 24 hours format. Anyone please help me in this. Thanks
Kirsten Smith (she/her) Posted February 7, 2020 Posted February 7, 2020 DateTime columns look at the Regional settings on your computer, so try changing that to 24-hour time and you should see the expected data in Spotfire.
Donald Johnson Posted February 17, 2021 Posted February 17, 2021 A comment from pchetty87, Misleading as this can be changed in Spotfire without the need for changing regional settings. Refer to the below: https://docs.tibco.com/pub/spotfire_server/7.10.0/doc/html/en-US/TIB_sfire-bauthor-consumer_usersguide/GUID-D997D316-2686-413F-9417-4A52F37754CA.html
Danielle Topalsky Posted February 25, 2021 Posted February 25, 2021 Capital H and HH reference the 24 hour clock whereas using lower case h is for 12 hour. Looks like you've already been using capital H but Spotfire may not be recognizing the format so you can try the following: ParseDateTime([Column Name],"MM/dd/yyyy HH:mm:ss")
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