Pages

Thursday, October 22, 2009

java.sql.SQLException: ORA-01816: month may only be specified once

I was using "dd-mon-yyyy hh24:mm" as my date format. Here I have specified mm for two times. That’s why exception occurred. I was expecting minute. Instead of mm I need to use mi. So the correct date format string would be

 

            "dd-mon-yyyy hh24:mi"

 

No comments:

Post a Comment