SkyCoder
9 months ago
125
4
Laravel

Get number of week day in carbon

Posted 9 months ago by SkyCoder

If I can get number of week day like this:

$time = time();

$day_as_number = date('N', $time);

How can I do that with Carbon::now() ?

Please sign in or create an account to participate in this conversation.