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-68082%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%88%A5%E3%80%85%E3%81%AE%E6%97%A5%E4%BB%98%E3%81%A8%E6%99%82%E5%88%BB%E3%81%AE%E5%88%97%E3%82%92%E7%B5%90%E5%90%88%E3%81%97%E3%81%A6%20ISO%208601%20%E5%BD%A2%E5%BC%8F%20(yyyy-mm-ddThh%3Amm)%20%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-68082%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EISO%208601%20%E5%BD%A2%E5%BC%8F%E3%81%AE%E5%88%97%E3%82%92%E7%94%9F%E6%88%90%E3%81%97%E3%82%88%E3%81%86%E3%81%A8%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%E3%81%93%E3%82%8C%E3%81%AF%E3%80%812%20%E3%81%A4%E3%81%AE%E5%88%A5%E3%80%85%E3%81%AE%E6%97%A5%E4%BB%98%E3%81%A8%E6%99%82%E5%88%BB%E3%81%AE%E5%88%97%E3%82%92%E7%B5%84%E3%81%BF%E5%90%88%E3%82%8F%E3%81%9B%E3%81%A6%E3%80%81%E7%B5%90%E5%90%88%E3%81%95%E3%82%8C%E3%81%9F%E6%97%A5%E4%BB%98%2F%E6%99%82%E5%88%BB%E5%BD%A2%E5%BC%8F%20(yyyy-mm-ddThh%3Amm)%20%E3%81%AB%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%20%E4%BB%A5%E4%B8%8B%E3%81%AB%E4%BE%8B%E3%82%92%E7%A4%BA%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CTABLE%3E%3CTBODY%3E%3CTR%3E%3CTD%3E%E6%97%A5%E4%BB%98%20(yyyy-mm-dd)%3C%2FTD%3E%3CTD%3E%E6%99%82%E9%96%93%20(%3A%E6%97%A5%3A%E6%99%82%3A%E5%88%86%3A%E7%A7%92)%3C%2FTD%3E%3CTD%3E%3CP%3E%E6%97%A5%E4%BB%98%E6%99%82%E5%88%BB%3CSPAN%3E(yyyy-mm-ddThh%3Amm)%3C%2FSPAN%3E%3C%2FP%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E2000-07-20%3C%2FTD%3E%3CTD%3E%3A0%3A09%3A30%3A00%3C%2FTD%3E%3CTD%3E%3CSPAN%3E2000-07-20T09%3A30%3C%2FSPAN%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E1993-04-30%3C%2FTD%3E%3CTD%3E%3A0%3A12%3A01%3A00%3C%2FTD%3E%3CTD%3E%3CSPAN%3E1993-04-30T12%3A01%3C%2FSPAN%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E2003-05-05%3C%2FTD%3E%3CTD%3E%3A0%3A16%3A28%3A00%3C%2FTD%3E%3CTD%3E%3CSPAN%3E2003-05-05T16%3A28%3C%2FSPAN%3E%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E3%80%8CTIME%E3%80%8D%E5%88%97%E3%81%AE%E5%BD%A2%E5%BC%8F%E3%82%92%E5%8D%98%E3%81%AB%E6%AC%A1%E3%81%AE%E3%82%88%E3%81%86%E3%81%AB%E5%A4%89%E6%9B%B4%E3%81%97%E3%82%88%E3%81%86%E3%81%A8%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%3CSPAN%3Eyyyy-mm-ddThh%3Amm%20%E3%81%A7%E3%81%99%E3%81%8C%E3%80%811904%20%E5%B9%B4%E3%81%AE%E6%97%A5%E4%BB%98%E3%81%8C%E3%82%8F%E3%81%8B%E3%82%8A%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3C%2FSPAN%3E%E4%BD%95%E3%81%8B%E3%81%94%E6%84%8F%E8%A6%8B%E3%81%AF%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-68099%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20%E5%88%A5%E3%80%85%E3%81%AE%E6%97%A5%E4%BB%98%E3%81%A8%E6%99%82%E5%88%BB%E3%81%AE%E5%88%97%E3%82%92%E7%B5%90%E5%90%88%E3%81%97%E3%81%A6%20ISO%208601%20%E5%BD%A2%E5%BC%8F%20(yyyy-mm-ddThh%3Amm)%20%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-68099%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E3%81%8A%E3%81%84%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F12389%22%20target%3D%22_blank%22%3E%40Valley_Gurl%3C%2FA%3E%20%E3%80%81%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E5%B9%B8%E3%81%84%E3%81%AA%E3%81%93%E3%81%A8%E3%81%AB%E3%80%81%E3%81%93%E3%82%8C%E3%81%AF%E8%A6%8B%E3%81%9F%E7%9B%AE%E3%82%88%E3%82%8A%E3%82%82%E7%B0%A1%E5%8D%98%E3%81%A7%E3%81%99%E3%80%821904%20%E5%B9%B4%201%20%E6%9C%88%201%20%E6%97%A5%E5%8D%88%E5%89%8D%2012%3A00%3A00%20%E3%81%AF%E3%80%81JMP%20%E3%81%AE%E6%97%A5%E4%BB%98%2F%E6%99%82%E5%88%BB%E5%80%A4%E3%81%AE%E3%83%99%E3%83%BC%E3%82%B9%E3%83%A9%E3%82%A4%E3%83%B3%E5%80%A4%E3%81%A7%E3%81%99%E3%80%82%E6%97%A5%E4%BB%98%E3%81%AE%E3%81%BF%E3%81%AE%E5%80%A4%20(%E6%9C%80%E5%88%9D%E3%81%AE%E5%88%97)%20%E3%81%8C%E3%81%82%E3%82%8B%E5%A0%B4%E5%90%88%E3%80%81%E8%A1%A8%E7%A4%BA%E3%81%95%E3%82%8C%E3%82%8B%E6%9B%B8%E5%BC%8F%E8%A8%AD%E5%AE%9A%E3%81%95%E3%82%8C%E3%81%9F%E5%80%A4%E3%81%AE%E5%9F%BA%E7%A4%8E%E3%81%A8%E3%81%AA%E3%82%8B%E3%81%AE%E3%81%AF%E3%80%811904%20%E5%B9%B4%E3%81%AE%E3%83%99%E3%83%BC%E3%82%B9%E3%83%A9%E3%82%A4%E3%83%B3%E6%99%82%E5%88%BB%E3%81%8B%E3%82%89%E6%8C%87%E5%AE%9A%E3%81%95%E3%82%8C%E3%81%9F%E6%97%A5%E4%BB%98%E5%80%A4%E3%81%AE%E5%8D%88%E5%89%8D%200%20%E6%99%82%E3%81%BE%E3%81%A7%E3%81%AE%E7%B5%8C%E9%81%8E%E7%A7%92%E6%95%B0%E3%81%A7%E3%81%82%E3%82%8B%E6%95%B0%E5%80%A4%E3%81%A7%E3%81%99%E3%80%82%E6%99%82%E9%96%93%E3%81%AE%E3%81%BF%E3%81%AE%E5%80%A4%20(2%20%E7%95%AA%E7%9B%AE%E3%81%AE%E5%88%97)%20%E3%81%8C%E3%81%82%E3%82%8B%E5%A0%B4%E5%90%88%E3%80%81%E3%81%9D%E3%82%8C%E3%81%AF%E5%8D%88%E5%89%8D%200%20%E6%99%82%20(%E6%97%A5%E4%BB%98%2F%E6%99%82%E5%88%BB%E3%81%AB%E5%A4%89%E6%8F%9B%E3%81%99%E3%82%8B%E3%81%A8%201904%20%E5%B9%B4%201%20%E6%9C%88%201%20%E6%97%A5)%20%E3%81%8B%E3%82%89%E3%81%AE%E7%B5%8C%E9%81%8E%E7%A7%92%E6%95%B0%E3%81%AB%E3%81%AA%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%E3%81%97%E3%81%9F%E3%81%8C%E3%81%A3%E3%81%A6%E3%80%81%E5%BF%85%E8%A6%81%E3%81%AA%E3%81%AE%E3%81%AF%E3%81%9D%E3%82%8C%E3%82%89%E3%82%92%E5%90%88%E8%A8%88%E3%81%97%E3%81%A6%E3%80%81%E3%83%95%E3%82%A9%E3%83%BC%E3%83%9E%E3%83%83%E3%83%88%E3%82%92%E9%81%A9%E7%94%A8%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%81%A0%E3%81%91%E3%81%A7%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E6%97%A5%E4%BB%98%2F%E6%99%82%E5%88%BB%E3%81%AE%E5%88%97%E3%81%AE%E5%BC%8F%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22formula.PNG%22%20style%3D%22width%3A%20805px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22formula.PNG%22%20style%3D%22width%3A%20805px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22formula.PNG%22%20style%3D%22width%3A%20805px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F12036iF0871EC10567CEA0%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22formula.PNG%22%20alt%3D%22formula.PNG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E3%83%95%E3%82%A9%E3%83%BC%E3%83%9E%E3%83%83%E3%83%88%E3%82%92%E9%81%A9%E7%94%A8%E3%81%99%E3%82%8B%3A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22columninfo.PNG%22%20style%3D%22width%3A%20540px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22columninfo.PNG%22%20style%3D%22width%3A%20540px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22columninfo.PNG%22%20style%3D%22width%3A%20540px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F12037i5D07259AB622D02B%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22columninfo.PNG%22%20alt%3D%22columninfo.PNG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E*%E5%90%88%E8%A8%88%E3%81%AE%E7%B5%90%E6%9E%9C%E3%81%AF%E3%80%81%E3%83%99%E3%83%BC%E3%82%B9%E3%83%A9%E3%82%A4%E3%83%B3%E3%81%8B%E3%82%89%E7%9B%AE%E7%9A%84%E3%81%AE%E6%97%A5%E4%BB%98%2F%E6%99%82%E5%88%BB%E5%80%A4%E3%81%BE%E3%81%A7%E3%81%AE%E7%A7%92%E6%95%B0%E3%82%92%E8%A1%A8%E3%81%99%E5%A4%A7%E3%81%8D%E3%81%AA%E6%95%B4%E6%95%B0%E3%81%AB%E3%81%AA%E3%82%8B%E3%81%9F%E3%82%81%E3%80%81%E5%85%A5%E5%8A%9B%E5%BD%A2%E5%BC%8F%E3%81%8C%E3%80%8C%E6%95%B0%E5%80%A4%E3%80%8D%E3%81%A7%E3%81%82%E3%82%8B%E3%81%93%E3%81%A8%E3%82%92%E7%A2%BA%E8%AA%8D%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%3C%2FSTRONG%3E%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%E7%B5%90%E6%9E%9C%EF%BC%9A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Result.PNG%22%20style%3D%22width%3A%20736px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Result.PNG%22%20style%3D%22width%3A%20736px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Result.PNG%22%20style%3D%22width%3A%20736px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F12038i54A0CB5995202F57%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Result.PNG%22%20alt%3D%22Result.PNG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
Valley_Gurl
Level II

Combining separate date and time columns to make ISO 8601 format (yyyy-mm-ddThh:mm)

I am trying to generate a ISO 8601 formatted column, which combines two sepatate date and time columns into a joint date/time form (yyyy-mm-ddThh:mm). Here is an example:

 

DATE (yyyy-mm-dd)TIME (:day:hr:m:s)

DATE/TIME (yyyy-mm-ddThh:mm)

2000-07-20:0:09:30:002000-07-20T09:30
1993-04-30:0:12:01:001993-04-30T12:01
2003-05-05:0:16:28:002003-05-05T16:28

 

I have tried to simply change the format for the "TIME" column to yyyy-mm-ddThh:mm but that gave me dates in 1904. Any thoughts?

1 ACCEPTED SOLUTION

Accepted Solutions
cwillden
Super User (Alumni)

Re: Combining separate date and time columns to make ISO 8601 format (yyyy-mm-ddThh:mm)

Hey @Valley_Gurl,

 

Luckily, this is easier than it looks.  12:00:00 AM January 1, 1904 is the baseline value for date/time values in JMP.  If you have date only values (first column), underlying the presented formatted value is a numeric value that is the number of seconds elapsed the baseline time in 1904 to midnight of the given date value.  If you have a time only value (your second column), it is the number of elapsed seconds since midnight (on January 1, 1904 if you convert it to date/time).  Therefore, all you need to do is sum them together, and then apply a format.

 

The column formula for data/time:

 formula.PNG

 

Applying the format:columninfo.PNG

*Make sure the input format is "Numeric" since the result of the sum will just be a large integer representing the number of seconds from baseline to the desired date/time value.  

Result:

 

 

Result.PNG

 

 

-- Cameron Willden

View solution in original post

1 REPLY 1
cwillden
Super User (Alumni)

Re: Combining separate date and time columns to make ISO 8601 format (yyyy-mm-ddThh:mm)

Hey @Valley_Gurl,

 

Luckily, this is easier than it looks.  12:00:00 AM January 1, 1904 is the baseline value for date/time values in JMP.  If you have date only values (first column), underlying the presented formatted value is a numeric value that is the number of seconds elapsed the baseline time in 1904 to midnight of the given date value.  If you have a time only value (your second column), it is the number of elapsed seconds since midnight (on January 1, 1904 if you convert it to date/time).  Therefore, all you need to do is sum them together, and then apply a format.

 

The column formula for data/time:

 formula.PNG

 

Applying the format:columninfo.PNG

*Make sure the input format is "Numeric" since the result of the sum will just be a large integer representing the number of seconds from baseline to the desired date/time value.  

Result:

 

 

Result.PNG

 

 

-- Cameron Willden

Recommended Articles