This topic is locked

syntax date error

6/28/2017 9:34:56 AM
PHPRunner General questions
H
htmalbenur author

I want to have only the year here is the syntax that I use but it does not work how to do it please.
strftime("%Y") for year only

strftime("%m-%d") for month and day only
but it does not work, do you have an idea.
thx

Sergey Kornilov admin 6/28/2017

You need to use PHP's date() function:

http://php.net/manual/en/function.date.php