Created
June 1, 2021 17:09
-
-
Save Sentinel-7/df3f8cc2b5977b097ce27f49abf5d147 to your computer and use it in GitHub Desktop.
Получаем вчерашнюю дату fenom
This file contains 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
{set $time = '' | date_format : "%s" - (24*60*60)} | |
{$time | date_format : "%b %d, %Y"} | |
или сниппет | |
<?php | |
$yesterday = date('F j, Y', time()-86400); | |
return $yesterday; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment