Inhaltsverzeichnis Smarty Smarty Modifikatoren date_format

date_format

Formatiert ein Datum in das gewünschte Format.

Beispiel

QuelltextSmarty Code:
  1. {$smarty.now|date_format}
  2. {$smarty.now|date_format:"%d.%m.%y %H:%M:%S"}
  3. {$smarty.now|date_format:"%A, %B %e, %Y"}

Ausgabe

QuelltextHTML Code:
  1. Dez 1, 2009 
  2. 01.12.09 09:46:36 
  3. Dienstag, Dezember 1, 2009

 

Weiter Informationen und Parameter dazu finden Sie in der Dokumentation auf Smarty.net.