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