Jump to content

Recommended Posts

Posted

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

  • 1 year later...
Posted

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") 

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...