I want to convert my created_at date into day_of_week format, and I am stuck.
Here is what I did so far :
$max_created_at = DB::table('inventories')->max('created_at');
// 2015-02-17 21:32:30
$day = DateHelper::getDay($max_created_at);
// 17
With the data I have, I want to convert my $day
into day_of_week.
Example, since today is 2/18/2015 Wednesday, it should return 3.