Hi JMP community,
I would like to know if there is a more efficient way to translate a date string in the format 06-AUG-2018 into a JMP date.
Here is what I have used in the past:
Local( {t1},
t1 = Match( Word( 2, :Date of Collection, "-" ),
"JAN", 1,
"FEB", 2,
"MAR", 3,
"APR", 4,
"MAY", 5,
"JUN", 6,
"JUL", 7,
"AUG", 8,
"SEP", 9,
"OCT", 10,
"NOV", 11,
12
);
Date MDY(
t1,
Num( Word( 1, :Date of Collection, "-" ) ),
Num( Word( 3, :Date of Collection, "-" ) )
);
)
Where "Date of Collection" is the string date.
I also tried the "In Format" function but I could not figure out how to make JMP understand the abbreviated month (e.g. JAN, FEB...).
Thank you for your help.
Sincerely,
TS
Thierry R. Sornasse