Convert Date to Letters
Hello!
I'm trying to take a field that store a date (Ej: 02/10/2020) and make it into letter (Ej: diez de febrero del dos mil veinte), and yes if you were wondering it got to be in spanish. I'm trying with this query
SELECT
TRIM(TO_CHAR(SYSDATE, 'dd', 'NLS_DATE_LANGUAGE = SPANISH'))
|| ' de ' || TRIM(to_char(SYSDATE, 'Month' , 'NLS_DATE_LANGUAGE = SPANISH'))
|| ' de ' || TRIM(to_char(SYSDATE, 'yyyy' , 'NLS_DATE_LANGUAGE = SPANISH'))
FROM PS_TABLE
WHAT I GET IS: 10 DE FEBRERO DE 2020
If anyone have an idea on how can I do this, please help out.