skip to Main Content

how can I add some hours in PHP/Carbon?

I am using Laravel and have this code: $date = now()->locale('es_ES'); $start_date = $date->isoFormat('D [de] MMMM [de] YYYY') $start_time = $date->isoFormat('HH[H]hh') $end_date = $date->addHours(3)->isoFormat('D [de] MMMM [de] YYYY') $end_time = $date->addHours(3)->isoFormat('HH[H]hh') this is the output start_date : 24 de abril…

VIEW QUESTION
Back To Top
Search