PHP CreateFromformat Day dalam Minggu

<?php
$date = DateTime::createFromFormat('Y-m-d', '2018-06-21');
echo $date->format('l'); # l for full week day name
?>
Matteoweb