Convert to text

Converts a date, stored in milliseconds in MXO , to a specified string format.

Dates can be converted into the following formats:

FieldDescription
ISO Date-Timeyyyy-MM-ddTHH:mm:ss.SSSZ
Date-Timeyyyy-MM-dd HH:mm:ss.SSSZ
ISO Date-Time (no ms)yyyy-MM-ddTHH:mm:ssZZ
Date-Timeyyyy-MM-dd HH:mm:ssZZ
Date-Timeyyyy-MM-dd HH:mm:ss
ISO Dateyyyy-mm-dd
Datedd-mm-yyyy
Date (USA)mm-dd-yyyy
Date (Dot separated)dd.mm.yyyy
Date (Slash separated)dd/mm/yyyy
ISO Timehh:mm:ssZZ
Timehh:mm:ss
Timehh:mm
DayName
DayNumeric
DayName
DayNumeric
YearNumeric

Example Use Case

A bank want to send credit card customers an SMS or email reminder to let them know their payment date is coming up. They can create a rule to convert the date, stored in milliseconds in MXO , into another, more human-readable, format and include that rule in the structure used as the basis for the reminder SMS or email.

Example SMS using original date, stored in MXO :

Your payment is due on 1607040000.

Example SMS using converted ISO formatted date:

Your payment is due on 2020-12-04.

Example Eligibility Rule

convert cc payment date to iso_date text

Exp - convert to text