I have a string time 2020-05-18T15:58:01Z
. How can I convert it into Australia/Sydney
time in the format Y-m-d H:i:s
so that its a date or datetime object?
$str = '2020-05-18T15:58:01Z';
$converted = strtotime($str);
echo(converted)
I have a string time 2020-05-18T15:58:01Z
. How can I convert it into Australia/Sydney
time in the format Y-m-d H:i:s
so that its a date or datetime object?
$str = '2020-05-18T15:58:01Z';
$converted = strtotime($str);
echo(converted)