php time vs php date code example
Example: whats the difference between using date function and DATETime in php
function weeknumber($ddate) {
$date = new DateTime($ddate);
return $date->format('W');
}
function weeknumber($ddate) {
$date = new DateTime($ddate);
return $date->format('W');
}