Log 1986
22/08/2023 2023-08-22 9:36$textField = #מספר_חודשים#;
// Extracting the month and year from the text field
$monthYear = explode(‘_’, $textField);
$month = $monthYear[0];
$year = $monthYear[1];
// Constructing the date in DD/MM/YYYY format
$date = ’01/’ . str_pad($month, 2, ‘0’, STR_PAD_LEFT) . ‘/’ . $year;
return $date;