cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
DELANDJ1985
Level III

Formula to fix excel date format with IST and/or GMT

Look to create a column with DD/MM/YY HH:MM:SS

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Formula to fix excel date format with IST and/or GMT

I believe this is what you want.......I arbitrarily set the GMT offset to -9 hours.....set it to whatever you need it to be

txnelson_0-1730608297616.png

 

If(
	Contains( :Weightime, "ST" ),
		Informat( Substr( :Weightime, 1, Contains( :Weightime, "ST" ) - 2 ), "ddMONyyyy h:m:s" ),
	Contains( :Weightime, "GMT" ),
		Informat( Substr( :Weightime, 1, Contains( :Weightime, "GMT" ) - 2 ), "ddMONyyyy h:m:s" )
		-In Hours( 9 )
)
Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: Formula to fix excel date format with IST and/or GMT

I believe this is what you want.......I arbitrarily set the GMT offset to -9 hours.....set it to whatever you need it to be

txnelson_0-1730608297616.png

 

If(
	Contains( :Weightime, "ST" ),
		Informat( Substr( :Weightime, 1, Contains( :Weightime, "ST" ) - 2 ), "ddMONyyyy h:m:s" ),
	Contains( :Weightime, "GMT" ),
		Informat( Substr( :Weightime, 1, Contains( :Weightime, "GMT" ) - 2 ), "ddMONyyyy h:m:s" )
		-In Hours( 9 )
)
Jim
DELANDJ1985
Level III

Re: Formula to fix excel date format with IST and/or GMT

Thank you Jim - much appreciated.

Recommended Articles