TI Functions

TM1 Function for TI – ​​​​​​​​​​​​​NewDateFormatter 

Available In

TurboIntegrator

Definition

NewDateFormatter sets the date format used with ParseDate and FormatDate function.

Syntax

NewDateFormatter(Locale, TimeZone,  UnixTimeFormatterStyleTimeType);

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’

Video Demo

Get today’s date and time and convert to Chicago and Melbourne time.