How to check in Smarty whether the displayed variable holds the current date

Practice




how to check in smarty that the displayed variable has the current date (number)

it can be done like this, for example



{$modified_date|date_format:"%Y-%m-%d %H:%M:%S"}

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Running server side scripts using PHP as an example (LAMP)"

Terms: Running server side scripts using PHP as an example (LAMP)