* @param array $date
* ('Y', 'M', 'd').
* @param string $separator
- * The seperator to use when formatting the date.
+ * The separator to use when formatting the date.
* @param int|string $invalidDate what to return if the date is invalid
*
* @return string
}
}
+ /**
+ * Format the field according to the site's preferred date format.
+ *
+ * This is likely to look something like December 31st, 2020.
+ *
+ * @param string $date
+ *
+ * @return string
+ */
+ public static function formatDateOnlyLong(string $date):string {
+ return CRM_Utils_Date::customFormat($date, Civi::settings()->get('dateformatFull'));
+ }
+
/**
* Wrapper for customFormat that takes a timestamp
*