This is not an duplicate question. I am using a php date function for format a date.
my date value is : close_date:08/25/2017.
This is php function : $close_date = date('Y-m-d', strtotime($close_date));
print the close_date , result is : 2017-08-26.
my timezone is : -5:00 and server is on UTC , so at time of format date , date is convert into the utc date ?
so date is just format the date or convert date as per set timezone ?
Help me to solve this problem.
I don't want to convert my date to any timezone date, i just want to change format of the date.
My Input is: 08/25/2017
Expected output is: 2017-08-25
$close_date="08/25/2017"; echo $close_date = date('Y-m-d', strtotime($close_date));