여러분, 안녕하세요!
JSL 또는 수식을 사용하여 열 1의 텍스트를 열 2의 시간 형식으로 변환하는 방법.
감사해요!

다음은 귀하가 제공한 예제와 함께 작동하는 형식입니다.값과 구조의 다른 조합에 맞게 조정해야 합니다.공식이 적용된 샘플 데이터 테이블이 첨부되어 있습니다.
If( Row() == 1,
moList = {"January", "February", "March", "April", "May", "June", "July",
"August", "September", "October", "November", "December"};
moAbvList = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep",
"Oct", "Nov", "Dec"};
);
If(
Word( 3, :Mdfc, " /-" ) == "",
theDay = Num( Substr( :Mdfc, 1, 2 ) );
theMonth = Contains( moAbvList, Substr( :Mdfc, 4, 3 ) );
theYear = Num( Word( -1, :Mdfc, "abcdefghijklmnopqrstuvwxyz" ) );
Show( theday, themonth, theyear, Substr( :Mdfc, 4, 3 ) );,
Is Missing( Num( Word( 2, :Mdfc, " /-" ) ) ) == 1,
theDay = Num( Word( 1, :Mdfc, " /-" ) );
theMonth = Contains( moList, Word( 2, :Mdfc, " /-" ) );
theYear = Num( Word( 3, :Mdfc, " /-" ) );,
Is Missing( Num( Word( 1, :Mdfc, " /-" ) ) ) == 1,
theDay = Num( Word( 2, :Mdfc, " /-" ) );
theMonth = Contains( moList, Word( 1, :Mdfc, " /-" ) );
theYear = Num( Word( 3, :Mdfc, " /-" ) );,
theDay = Num( Word( 2, :Mdfc, " /-" ) );
theMonth = Num( Word( 1, :Mdfc, " /-" ) );
theYear = Num( Word( 3, :Mdfc, " /-" ) );
);
Date MDY( theMonth, theDay, theYear );그게 스타일이야, 고마워!
효과는 동일합니다.
형식(x, "y/m/d") ———— 형식(x, "yyyyymmdd")
그만큼 체재() 함수는 a를 변환하는 데 사용됩니다. JMP 날짜, 시간 또는 날짜/시간 값 텍스트 문자열에.
예를 들어:
x=informat("20000214");
show(format(x, "m/d/y"));
show(format(x, "d/m/y"));
show(format(x, "Date Long"));
show(format(x, "Monddyyyy"));
로그에 다음과 같은 결과가 나타납니다.
Format(x, "m/d/y") = "02/14/2000";
Format(x, "d/m/y") = "14/02/2000";
Format(x, "Date Long") = "Monday, February 14, 2000";
Format(x, "Monddyyyy") = "Feb142000";
JMP는 어떻게 날짜 형식에서 연도, 월, 일의 텍스트를 가져올 수 있습니까?
번거롭게 해드려 죄송합니다, 감사합니다!

@txnelson 의 공식이 작동하지만 약간 더 간단한 공식도 작동합니다.

이것은 사용 정보() 날짜 및 시간 값을 변환합니다.
Informat( Word( 1, :Column 1 ) ) +Informat( Word( 2, :Column 1 ), "h:m" )
변환 공식은 다음과 같습니다.
Date DMY(
Num( Substr( :date, 7, 2 ) ),
Num( Substr( :date, 5, 2 ) ),
Num( Substr( :date, 1, 4 ) ) ) +
60 * 60 * Num( Word( 2, :date, " :" ) ) +
60 * Num( Word( -1, :date, " :" ) )