Oracle Database includes a good selection of datetime format elements. that enable us to format dates and times when using the TO_CHAR(datetime)
function.
One of these (the YEAR
format element) allows us to format a date with the year spelled out. For example, instead of 1972
, we’d get NINETEEN SEVENTY-TWO
.
We can also use SYEAR
so that BC dates are prefixed with a minus sign (-
).