TM1 Function for TI, NewDateFormatter
Sets the date format used with ParseDate and FormatDate function.
What is the NewDateFormatter function?
NewDateFormatter sets the date format used with ParseDate and FormatDate function.
Where can the NewDateFormatter function be used?
TurboIntegrator
What is the syntax for NewDateFormatter ?
NewDateFormatter(Locale, TimeZone, UnixTime, FormatterStyle, TimeType);
Locale = local language
TimeZone = time zone
UnixTime = whether use Unix time or not
FormatterStyle = date format whether ‘full’, ‘long’, ‘medium’ or ‘short’
TimeType = type format whether ‘time’, ‘date’ or ‘datetime’
A demonstration on how to use NewDateFormatter
Get today’s date and time and convert to Chicago and Melbourne time.