modifier.date_format.php
Plugin from smarty project and adapted for jtpl
Tags
Table of Contents
- jtpl_modifier_common_date_format() : string
- modifier plugin : format a date <pre> {$mydate|date_format:"%b %e, %Y"} </pre>
Functions
jtpl_modifier_common_date_format()
modifier plugin : format a date <pre> {$mydate|date_format:"%b %e, %Y"} </pre>
jtpl_modifier_common_date_format(string $string[, string $format = "%b %e, %Y" ][, string|int $default_date = null ]) : string
Parameters
- $string : string
-
input date string
- $format : string = "%b %e, %Y"
-
strftime format for output
- $default_date : string|int = null
-
default date if $string is empty
Return values
string —the formated date