oracle English abbreviated date into numeric date string

1. Convert the English abbreviated date and month into numbers:
select to_char(to_date('01AUG','ddMM','NLS_DATE_LANGUAGE = American'),'MMdd') from dual;

2. Convert the digital time to English abbreviations Time
select to_char(to_date('0108', 'ddMM'), 'ddMON', 'NLS_DATE_LANGUAGE = American') from dual;
2.1 The display result is: 01AUG month is all uppercase, the related setting is the second parameter of to_char, when When the second parameter is ddMon, the result is 01Aug.

Note: The display value can be set by setting the character set in the to_date() function.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326939245&siteId=291194637