Answers for "laravel carbon return all dates in week"

PHP
9

carbon date from format

Carbon::createFromFormat('Y-m-d H:i:s', $request->date)->format('d-m-Y')
Posted by: Guest on April-26-2020
1

add seconds to datetime carbon

Try to parse() it first:
$date = Carbon::parse($dateTime)
            ->addSeconds($seconds)
            ->format('Y-m-d H:i:s');
Posted by: Guest on July-06-2020

Code answers related to "laravel carbon return all dates in week"

Browse Popular Code Answers by Language