Building a custom date format to include milliseconds: 2020-06-11T03:18:30.000ZI have used the custom date format generator to produce this custom format (which does not work):
<-><->
- <'T'><:><:><:>
The format I received from Twitter has th period between seconds and hundredths, but that is not an option in the date format builder.
Mass CustomizationRe: Building a custom date format to include milliseconds: 2020-06-11T03:18:30.000ZThe issue might be with the Z, not with milliseconds.
Names Default To Here(1);
date_str = "2020-06-11T03:18:30.123Z";
Show(Informat(date_str, "Format Pattern", "<YYYY><-><MM><-><DL><DD><'T'><HH24><:><MM><:><SS>"));
//drop Z
date_str = Left(date_str, Length(date_str) - 1);
Show(Informat(date_str, "Format Pattern", "<YYYY><-><MM><-></MM></YYYY></SS></MM></HH24></DD><DD><'T'><HH24><:><MM><:><SS>"));
date_with_ms = Format(date_formatted, "yyyy-mm-ddThh:mm:ss", 25,3);
show(date_with_ms);</SS></MM></HH24></DD></DL></MM></YYYY>