cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-246353%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%88%97%E3%81%AE%E5%88%86%E5%89%B2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-246353%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E3%80%81%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E7%A7%81%E3%81%AF%E6%97%A5%E4%BB%98%E3%81%AE%E7%95%B0%E3%81%AA%E3%82%8B%E6%99%82%E7%82%B9%E3%81%A7%E6%97%A5%E4%BB%98%E3%81%AE%E5%AE%8C%E5%85%A8%E3%81%AA%E5%88%97%E3%82%92%E6%8C%81%E3%81%A3%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%E4%BE%8B%E3%81%88%E3%81%B0%EF%BC%9A%3C%2FP%3E%3CP%3E2020-01-31T11%20%3CBR%20%2F%3E%202020-01-31T12%20%3CBR%20%2F%3E%202020-01-31T13%20%3CBR%20%2F%3E%202020-01-31T14%20%3CBR%20%2F%3E%202020-01-31T15%20%3CBR%20%2F%3E%202020-01-31T16%20%3CBR%20%2F%3E%202020-01-31T17%20%3CBR%20%2F%3E%202020-01-31T18%20%3CBR%20%2F%3E%202020-01-31T19%20%3CBR%20%2F%3E%202020-01-31T20%20%3CBR%20%2F%3E%202020-01-31T21%20%3CBR%20%2F%3E%202020-01-31T22%20%3CBR%20%2F%3E%202020-01-31T23%20%3CBR%20%2F%3E%202020-02-01T00%20%3CBR%20%2F%3E%202020-02-01T01%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E3%81%9F%E3%81%A0%E3%81%97%E3%80%81%E6%97%A5%E4%BB%98%E3%81%A8%E6%99%82%E5%88%BB%E3%81%AE2%E3%81%A4%E3%81%AE%E5%88%A5%E3%80%85%E3%81%AE%E5%88%97%E3%81%AB%E5%88%86%E5%89%B2%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%E7%A7%81%E3%81%AF%E5%88%9D%E5%BF%83%E8%80%85%E3%81%AA%E3%81%AE%E3%81%A7%E3%80%81%E3%81%BE%E3%81%A0%E3%82%BD%E3%83%95%E3%83%88%E3%82%A6%E3%82%A7%E3%82%A2%E3%81%AB%E6%85%A3%E3%82%8C%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%EF%BC%81%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-246354%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%86%8D%EF%BC%9A%E5%88%97%E3%81%AE%E5%88%86%E5%89%B2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-246354%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ELeft%E3%80%81Substring%E3%80%81%E3%81%BE%E3%81%9F%E3%81%AFRight%E9%96%A2%E6%95%B0%EF%BC%88%E5%BC%8F%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6%E3%81%AECharacter%E3%82%B0%E3%83%AB%E3%83%BC%E3%83%97%E3%81%AB%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%EF%BC%89%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%80%812%E3%81%A4%E3%81%AE%E6%96%B0%E3%81%97%E3%81%84%E5%88%97%E3%82%92%E4%BD%9C%E6%88%90%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%99%E3%80%821%E3%81%A4%E3%81%AF%E6%97%A5%E4%BB%98%E3%80%81%E3%82%82%E3%81%861%E3%81%A4%E3%81%AF%E6%99%82%E9%96%93%E3%81%A7%E3%81%99%EF%BC%88%E6%9C%80%E5%BE%8C%E3%81%AE2%E6%A1%81%E3%81%AF%E6%99%82%E9%96%93%E3%81%A8%E4%BB%AE%E5%AE%9A%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%EF%BC%89%20T%E3%81%AF%E6%99%82%E9%96%93%E3%82%92%E8%A1%A8%E3%81%97%E3%81%BE%E3%81%99%EF%BC%89%E3%80%82%26nbsp%3B%20%E6%AC%A1%E3%81%AB%E3%80%81%E6%97%A5%E4%BB%98%E5%88%97yyyy-mo-day%E3%81%8C%E6%97%A5%E4%BB%98%E3%81%A8%E3%81%97%E3%81%A6%E3%83%95%E3%82%A9%E3%83%BC%E3%83%9E%E3%83%83%E3%83%88%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%82%8B%E3%81%93%E3%81%A8%E3%82%92%E7%A2%BA%E8%AA%8D%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%26nbsp%3B%20%E3%81%97%E3%81%9F%E3%81%8C%E3%81%A3%E3%81%A6%E3%80%81%E6%97%A5%E4%BB%98%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B%E3%81%AB%E3%81%AF%E3%80%81Left%EF%BC%88%E7%8F%BE%E5%9C%A8%E3%81%AE%E5%88%97%E3%80%8110%EF%BC%89%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%A7%E3%81%8D%E3%80%81%E6%99%82%E9%96%93%E3%81%AFRight%EF%BC%88%E7%8F%BE%E5%9C%A8%E3%81%AE%E5%88%97%E3%80%812%EF%BC%89%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-246485%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%EF%BC%9A%E5%88%97%E3%82%92%E5%88%86%E5%89%B2%E3%81%99%E3%82%8B%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-246485%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB%E3%83%87%E3%83%BC%E3%82%BF%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB%E3%82%92%E6%B7%BB%E4%BB%98%E3%81%97%E3%80%812%E3%81%A4%E3%81%AE%E5%88%97%E3%82%92%E8%BF%BD%E5%8A%A0%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%26nbsp%3B%20%E6%9C%80%E5%88%9D%E3%81%AE%E5%88%97%E3%81%AB%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%9F%E5%BC%8F%E3%81%AF%E6%AC%A1%E3%81%AE%E3%81%A8%E3%81%8A%E3%82%8A%E3%81%A7%E3%81%99%E3%80%82%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EInformat(%20Substr(%20%3AColumn%201%2C%201%2C%2010%20)%2C%20%22Y%2Fm%2Fd%22%20)%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%E3%82%B5%E3%83%96%E3%82%B9%E3%83%88%E3%83%AA%E3%83%B3%E3%82%B0%E5%8C%96%E3%81%95%E3%82%8C%E3%81%9F%E3%83%87%E3%83%BC%E3%82%BF%E3%81%8C%E6%97%A2%E5%AD%98%E3%81%AEInformat%EF%BC%88%EF%BC%89%E3%81%A8%E4%B8%80%E8%87%B4%E3%81%97%E3%81%9F%E3%81%9F%E3%82%81%E3%80%81%E3%81%93%E3%82%8C%E3%81%AF%E3%81%8B%E3%81%AA%E3%82%8A%E5%8D%98%E7%B4%94%E3%81%AA%E5%A4%89%E6%8F%9B%E3%81%A7%E3%81%97%E3%81%9F%E3%80%82%3C%2FP%3E%0A%3CP%3E2%E7%95%AA%E7%9B%AE%E3%81%AE%E5%88%97%E3%81%AE%E6%95%B0%E5%BC%8F%E3%81%AF%E6%AC%A1%E3%81%AE%E3%81%A8%E3%81%8A%E3%82%8A%E3%81%A7%E3%81%99%E3%80%82%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EInformat(%20Substr(%20%3AColumn%201%2C%2012%2C%202%20)%20%7C%7C%20%22%3A0%22%2C%20%22hr%3Am%22%20)%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%E5%BF%85%E8%A6%81%E3%81%AA%E3%83%95%E3%82%A9%E3%83%BC%E3%83%9E%E3%83%83%E3%83%88%E3%81%AB%E3%81%AF%E6%99%82%E9%96%93%E3%81%A8%E5%88%86%E3%81%8C%E5%BF%85%E8%A6%81%E3%81%AA%E3%81%AE%E3%81%A7%E3%80%81Substr%EF%BC%88%EF%BC%89%E9%96%A2%E6%95%B0%E3%81%8B%E3%82%89%E8%BF%94%E3%81%95%E3%82%8C%E3%81%9F%E6%96%87%E5%AD%97%E5%88%97%E3%81%AB%E8%BF%BD%E5%8A%A0%E3%81%99%E3%82%8B%E3%81%A0%E3%81%91%E3%81%A7%E3%81%99%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%E3%81%93%E3%82%8C%E3%81%8CJMP%E3%81%AE%E4%BD%BF%E7%94%A8%E3%81%AB%E5%BD%B9%E7%AB%8B%E3%81%A4%E3%81%93%E3%81%A8%E3%82%92%E9%A1%98%E3%81%A3%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
SMast
Level I

Splitting columns

Hi,

 

i have a column full of dates with different time points in the date. Eg:

2020-01-31T11
2020-01-31T12
2020-01-31T13
2020-01-31T14
2020-01-31T15
2020-01-31T16
2020-01-31T17
2020-01-31T18
2020-01-31T19
2020-01-31T20
2020-01-31T21
2020-01-31T22
2020-01-31T23
2020-02-01T00
2020-02-01T01

 

but I want to split them into two separate columns: date and time. I'm a beginner so I'm still getting use to the software.

thanks!

2 REPLIES 2
dale_lehman
Level VII

Re: Splitting columns

You can use the Left, Substring, and or Right functions (found in the Character group in the formula window) to create 2 new columns, one with the date and the other with the hour (I am assuming the last two digits are the hour and the T just stands for time).  Then, make sure the date column yyyy-mo-day is formatted as a date.  So, to get the date you could use Left(current column, 10) and for the hour you could use Right(current column, 2).

txnelson
Super User

Re: Splitting columns

I have attached you sample data table and have added 2 columns.  The formula I used for the first column is:

Informat( Substr( :Column 1, 1, 10 ), "Y/m/d" )

It was a pretty straight forward conversion, because the substringed data matched an existing Informat().

The second column formula is:

Informat( Substr( :Column 1, 12, 2 ) || ":0", "hr:m" )

The format required needs to have minutes along with the hour, so I just had to add it to the string returned from the Substr() function

 

I hope this helps you with your journey into using JMP

Jim

Recommended Articles