fm이 fill mode인가본데.. hh:mi 앞에 쓰면 둘다 padding이 되네요.
SQL> select to_char(to_date('2024-07-18 14:05', 'yyyy-mm-dd hh24:mi'), 'fmmon-ddth-yyyy fmhh:mi A.M.', 'nls_date_language=American') from dual; TO_CHAR(TO_DATE('2024-07 ------------------------ jul-18th-2024 02:05 P.M.
https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/Format-Models.html#GUID-A4CCA8BD-1679-432E-96BA-22FB46FF23E0