modifier.crmDate.php
Tags
Table of Contents
Functions
- smarty_modifier_crmDate() : string
- Convert the date string "YYYY-MM-DD" to "MM<long> DD, YYYY".
Functions
smarty_modifier_crmDate()
Convert the date string "YYYY-MM-DD" to "MM<long> DD, YYYY".
smarty_modifier_crmDate(string $dateString[, string|null $dateFormat = NULL ][, bool $onlyTime = FALSE ]) : string
Parameters
- $dateString : string
-
Date which needs to converted to human readable format.
- $dateFormat : string|null = NULL
-
A string per https://www.php.net/manual/en/function.strftime.php or one of our configured formats name - eg
- dateformatDatetime
- dateformatFull
- dateformatPartial
- dateformatTime
- dateformatYear
- dateformatFinancialBatch
- dateformatshortdate
- $onlyTime : bool = FALSE
Return values
string —human readable date format | invalid date message