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

What is the syntax for ParseDate?

ParseDate (DateString, <Pattern>, <Index>)​;

​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’.