TM1 Function for TI, ParseDate
Parses a date string according to a formatter defined with the NewDateFormatter function.
What is the ParseDate function?
ParseDate parses a date string according to a formatter defined with the NewDateFormatter function.
Where can the ParseDate function be used?
TurboIntegrator
Which TM1 Server version is this function available for?
Version 11 and 12
What is the syntax for ParseDate?
ParseDate (DateString, u003cPatternu003e, u003cIndexu003e);
DateString = A date string to be parsed
Pattern = Pattern used for parsing dates
Index = Index returned by a call to the NewDateFormatter function. If no date formatter exists, then this is called
NewDateFormatter(”, ‘Etc/UTC’, ‘serial’, ‘medium’, ‘date’)
A demonstration on how to use ParseDate
Use ParseDate on the date ‘2020-04-22’, according to the format ‘yyyy-MM-dd’.