refactor: change display format for date input

This commit is contained in:
Yoga Pangestu 2026-01-14 10:42:31 +07:00
parent 7915e1ce38
commit 969fc0c4a0
3 changed files with 4 additions and 4 deletions

View File

@ -36,14 +36,14 @@ public static function configure(Schema $schema): Schema
->schema([
DatePicker::make('initial_submission_date')
->label('Tanggal Pengajuan Awal')
->placeholder(fn (): string => now()->format('Y-m-d'))
->placeholder(fn (): string => now()->format('l, d F Y'))
->native(false)
->displayFormat('l, d F Y')
->required(),
DatePicker::make('final_submission_date')
->label('Tanggal Pengajuan Akhir')
->placeholder(fn (): string => now()->addDays(30)->format('Y-m-d'))
->placeholder(fn (): string => now()->addDays(30)->format('l, d F Y'))
->native(false)
->displayFormat('l, d F Y')
->required()

View File

@ -62,7 +62,7 @@ public static function configure(Schema $schema): Schema
DatePicker::make('posting_date')
->label('Tanggal Posting')
->placeholder(fn (): string => now()->format('Y-m-d'))
->placeholder(fn (): string => now()->format('l, d F Y'))
->native(false)
->displayFormat('l, d F Y')
->required(),

View File

@ -91,7 +91,7 @@ public static function configure(Schema $schema): Schema
DatePicker::make('release_date')
->label('Tanggal Rilis')
->placeholder(fn (): string => now()->format('Y-m-d'))
->placeholder(fn (): string => now()->format('l, d F Y'))
->native(false)
->displayFormat('l, d F Y')
->required(),