Jelix 1.6.37

modifier.date_format.php

Plugin from smarty project and adapted for jtpl

Tags
subpackage

jtpl_plugin

author

Smarty team

contributor

Yannick Le Guédart

contributor

Olivier Demah, Laurent Jouanneau

copyright

2001-2003 ispi of Lincoln Inc., Yannick Le Guédart

copyright

2009 Olivier Demah, Laurent Jouanneau

link
http://smarty.php.net/
link
http://jelix.org/
licence

GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html

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

Search results