api chat, send summary, health sertificate, callback duitku
This commit is contained in:
@@ -490,4 +490,13 @@ class Helper
|
||||
return $umur . ' years old';
|
||||
}
|
||||
|
||||
public static function calculateDateDifference($startDate, $endDate)
|
||||
{
|
||||
$start = Carbon::parse($startDate);
|
||||
$end = Carbon::parse($endDate);
|
||||
|
||||
return $start->diffInDays($end) + 1;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user