Created
August 21, 2017 16:21
-
-
Save OlegShchavelev/ac558b6a539e41e4d9863a0b90e879f4 to your computer and use it in GitHub Desktop.
DaterangeTV - модификация даты, событие в один день или в период
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{var $dates = $detali|split:'||'} | |
{var $start = $dates[0]|date_format: '%d.%m.%Y'} | |
{var $finish = $dates[1]|date_format: '%d.%m.%Y'} | |
{var $time = "{$start} - {$finish}"} | |
{if $start == $finish} | |
{var $time = "{$start}"} | |
{/if} | |
{$time} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment