- Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- Fatal error: Uncaught Error: Call to a member function format() on string in /in/P9a0d:8
Stack trace:
#0 {main}
thrown in /in/P9a0d on line 8
Process exited with code 255.
<?php
$date = '20230121';
$date_from_format = DateTime::createFromFormat('Ymd', $date, new DateTimeZone('Asia/Jerusalem'));
print_r([
$date->format('j'),
$date->format('F'),
$date->format('Y'),
]);