select to_date('20100212','YYYYMMDD') from dual;
把字符串轉換為 日期格式
運行結果:
2010-2-12