Home » SQL & PL/SQL » SQL & PL/SQL » Year in Roman Numerals
Year in Roman Numerals [message #23436] Mon, 09 December 2002 10:45 Go to next message
Arathi
Messages: 9
Registered: November 2002
Junior Member
Hello,
Is it possible to display the year in Roman Numerals .. ex MCMXC ??
Re: Year in Roman Numerals [message #23438 is a reply to message #23436] Mon, 09 December 2002 10:52 Go to previous message
Todd Barry
Messages: 4819
Registered: August 2001
Senior Member
sql>select to_char(to_char(sysdate, 'yyyy'), 'FMRN') from dual;
 
TO_CHAR(TO_CHAR
---------------
MMII
 
1 row selected.
 
sql>select to_char(to_char(add_months(sysdate, -36), 'yyyy'), 'FMRN') from dual;
 
TO_CHAR(TO_CHAR
---------------
MCMXCIX
 
1 row selected.
 
sql>select to_char(1966, 'FMRN') from dual;
 
TO_CHAR(1966,'F
---------------
MCMLXVI
 
1 row selected.
Previous Topic: regarding users information
Next Topic: How to select recusrsively in an sql statement
Goto Forum:
  


Current Time: Thu May 16 08:52:01 CDT 2024