formatDate

fun Date.formatDate(dateFormat: BrazeDateFormat, timeZone: TimeZone = UTC_TIME_ZONE): String

Formats the date using the specified DateFormat pattern.

See parseDate.

Return

string representation of the date in specified format

Parameters

dateFormat

date format pattern

timeZone

The desired timezone