There is a date and time string in the format "2 листопада 2020, 21:00, п’ятниця" I want to convert it to DateTime. I tried converting.
setlocale(LC_ALL, 'uk_UA');
$t = '2 листопада 2020, 21:00, п’ятниця';
$date = date_create_from_format('j F Y, H:i, l', $t);
If the language is English, the date is converted, if Ukrainian does not work. How to set the language for conversion.