Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Day of Week Using carbon library

// CALCULATE DAY OF WEEK (USING CARBON LIBRARY Laravel)

use CarbonCarbon;

// pass dynamic day
$date = "2021-5-18";
$day  = new DateTime($date);
$dayOfWeek = $day->format('l');
 
PREVIOUS NEXT
Tagged: #Day #Week #Using #carbon #library
ADD COMMENT
Topic
Name
4+9 =