Use hijriFormatManager DateFormat to support translation and change date format to display full month name

Created on 30 April 2025, 15 days ago

Change bellow code to support translation month name

$start_gregorian = $start_date->format($format);

new code
$gregorian_date = $this->hijriFormatManager->dateFormatter->format($date->getTimestamp(), 'custom', 'd F Y');

--------------------------------------------------------------------

Change date format to use 'd-F-Y' to show full month name

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024