Source Code:
(back to article)
<?php $column_values = ['19700101', '19700112', '19700424', '19720302', '19740529']; foreach ($column_values as $value) { $date = DateTime::createFromFormat('Ymd', $value); echo $date->format('Y-m-d') . "\n"; }
Result:
Report an issue