change format date

This commit is contained in:
KhatamNugraha
2024-04-26 11:30:27 +07:00
parent 7d4a16dac0
commit cc9ed4fcef
2 changed files with 6 additions and 6 deletions

View File

@ -447,7 +447,7 @@
// dd($fasilitas);
$signer = Signer::where('id', $request['signerId'])->where('status',1)->get();
$currentDate = Carbon::now();
$currentDate = Carbon::parse($request['startDate2']);
$tanggalIndonesia = $currentDate->locale('id')->isoFormat('D MMMM YYYY');
$today = $currentDate->format("d-m-Y");
$letter = new Letters;
@ -462,7 +462,7 @@
$data['DataCustomer'] = $GetCustomer ?? '';
$data['localDate'] = $tanggalIndonesia;
$data['today'] = $today;
$data['batchDate'] = $request['startDate2'];
// $data['batchDate'] = $request['startDate2'];
$data['dataAADepo'] = $dataAADepo;
$data['infoSuratNew'] = $infoSuratNew;
@ -755,4 +755,4 @@
}
}