parse Date
Returns a Date object parsed from a BrazeDateFormat formatted date string.
See formatDate.
Return
Date object parsed from the dateString or null if the input date string is invalid or an error occurs.
Parameters
date Format
the date format pattern of dateString
Throws
if string cannot be parsed