After searching still problems with string replace
My $date
looks like
Sat, 11 Feb 2017 11:33:38 +0100
I need only the date part (YYYY-MM-DD):
2017-02-11
Please can somebody help. Thank you! Best regards, Roman
After searching still problems with string replace
My $date
looks like
Sat, 11 Feb 2017 11:33:38 +0100
I need only the date part (YYYY-MM-DD):
2017-02-11
Please can somebody help. Thank you! Best regards, Roman
Use
date("Y-m-d", strtotime($date));
$date
is var name that contain like Sat, 11 Feb 2017 11:33:38 +0100