create a formatDate service and method

This commit is contained in:
2026-03-18 16:30:13 +01:00
parent 6c679596bd
commit 2ca3100b3c
+13
View File
@@ -0,0 +1,13 @@
<?php
namespace App\Services;
use Carbon\Carbon;
class FormatDate
{
public static function formatDate($date){
return Carbon::parse($date)->format('d/m/Y, H:i');
}
}