Answers for "carbon use 12 hour format"

CSS
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
0

carbon today date with 12 00 am

$date = Carbon::now()->format('Y-m-d 00:00:00');
Posted by: Guest on June-01-2021

Code answers related to "carbon use 12 hour format"

Browse Popular Code Answers by Language