To_char(to_date(1234567,'j'),'jsp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • parvathiganesan
    New Member
    • May 2007
    • 3

    To_char(to_date(1234567,'j'),'jsp

    can anyone explain the query details
  • Saii
    Recognized Expert New Member
    • Apr 2007
    • 145

    #2
    Originally posted by parvathiganesan
    can anyone explain the query details
    As there is no in built function in oracle to convert numerals to word, we use this select statement to do so though there are some limitations.

    TO_CHAR(TO_DATE (numbertobeconv erted,'J'),'JSP ')

    'J' stands for Julian date conversion (date to number), while 'JSP' stands for Julian dates SPelled.

    Comment

    • gangadharampidugu
      New Member
      • May 2007
      • 5

      #3
      Originally posted by parvathiganesan
      can anyone explain the query details

      Hi,
      It will display the given number in expanded format like.......ONE MILLION TWO HUNDRED THIRTY-FOUR THOUSAND FIVE HUNDRED SIXTY-SEVEN....

      regards,

      Comment

      • debasisdas
        Recognized Expert Expert
        • Dec 2006
        • 8119

        #4
        J-is used to return -JULIAN-
        i.e.--DAYS SINCE 31-DEC-4712 BC


        SP is used to spell the day.

        try executing the inner part of the query separately ,u can easily find out.

        Comment

        Working...