ISO 8601 date with Smarty

{php}echo (new DateTime('{$DATE|date_format:"%Y-%m-%dT%H:%M:%S"}'))->format('c');{/php} <!-- not tested returns 2004-02-12T15:19:21+00:00

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.