In Oracle Database, we can use the TH
format element to add the ordinal number suffix to the result of a TO_CHAR()
operation when formatting dates.
For example, instead of outputting 10 Feb
we could output 10th Feb
. Or, instead of outputting 21 century
, we can output 21st century
. The same applies for spelled date components. For example, instead of Twenty One
, we can output Twenty First
.