In correct date format

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • orajit
    New Member
    • Nov 2007
    • 75

    In correct date format

    Could you Please tell me how to handle incorrect date format exception in pl sql exception section.
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    how are you passingthe date ?

    Comment

    • orajit
      New Member
      • Nov 2007
      • 75

      #3
      date format is
      eg:- to_date('121220 08','ddmmyyyy')

      If there is some error in date formate means month,date or complete date format is not proper then it should give me an error.

      My query is how to handle that exception in Exception block.

      Thanks in advance.

      Comment

      • debasisdas
        Recognized Expert Expert
        • Dec 2006
        • 8119

        #4
        Capture the error number and handle that using PRAGMA EXCEPTION_INIT

        Comment

        Working...