'YYYY', 'yy' => 'YYYY', 'y' => 'YYYY', // day 'dd' => 'DD', 'd' => 'D', // day of week 'EE' => 'ddd', 'EEEEEE' => 'dd', // timezone 'ZZZZZ' => 'Z', 'ZZZ' => 'ZZ', // letter 'T' '\'T\'' => 'T', // am/pm (a) to AM/PM (A) - Luxon always produces uppercase AM/PM 'a' => 'A', ]; /** * The output of this format is used only to convert the Litepicker date object * to the input field (expected by Symfony form). */ public function convert(string $format): string { return strtr($format, self::$formatConvertRules); } }