cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
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.