change current date format

This commit is contained in:
KhatamNugraha
2024-04-26 14:21:59 +07:00
parent e3703cbe5f
commit a3a643ddb9
2 changed files with 5 additions and 5 deletions

View File

@ -447,10 +447,10 @@
// dd($fasilitas); // dd($fasilitas);
$signer = Signer::where('id', $request['signerId'])->where('status',1)->get(); $signer = Signer::where('id', $request['signerId'])->where('status',1)->get();
$currentDate = Carbon::parse($request['startDate2']); $batchDate = Carbon::parse($request['startDate2']);
$tanggalIndonesia = $currentDate->locale('id')->isoFormat('D MMMM YYYY'); $currentDate = Carbon::now();
$tanggalIndonesia = strtoupper($tanggalIndonesia); // Mengubah seluruh string menjadi huruf besar $tanggalIndonesia = strtoupper($batchDate->locale('id')->isoFormat('D MMMM YYYY')); // Mengubah seluruh string menjadi huruf besar
$today = $currentDate->format("d-m-Y"); $today = strtoupper($currentDate->locale('id')->isoFormat('D MMMM YYYY'));
$letter = new Letters; $letter = new Letters;
$infoSuratNew = $letter->where('no_cif',$request['cusNo'])->orderBy('id','DESC')->first(); $infoSuratNew = $letter->where('no_cif',$request['cusNo'])->orderBy('id','DESC')->first();

View File

@ -99,7 +99,7 @@
<body> <body>
<main> <main>
<ul class="no-bullets"> <ul class="no-bullets">
<li>Nomor &nbsp; : {{$data['infoSuratNew']['no_surat']}}</li> <li>Nomor &nbsp; : {{$data['infoSuratNew']['no_surat']}}</li>
<li>Tanggal : {{ $data['today'] }}</li> <li>Tanggal : {{ $data['today'] }}</li>
</ul><br> </ul><br>
<ul class="no-bullets"> <ul class="no-bullets">