I am trying to count the number of days between two dates and when the status == complete
the count of days stops.
if ($this->status == 'COMPLETED') {
$now = Carbon::now();
$start_date = Carbon::createFromFormat('Y-m-d', $this->end_date);
$this->start_date_to_current_date = $end_date->diffInDays($now, true);
}
But the problem is, the days still continues to count and increment. how can I can make the counting stop ?
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2LNcyv1
via IFTTT
Aucun commentaire:
Enregistrer un commentaire