Possible Duplicate:
Oracle date pattern to java date pattern
Default JDBC date format when reading date as a string from ResultSet
In my java application, I have a date string coming from db in different-different formats each time 05-Feb-2013, along with the format pattern DD-MON-YYYY.
I need to convert this date string to java.util.Date. Java's default java.text.DateFormat implementation, which is java.text.SimpleDateFormat will not work here as it can not understand oracle database's format pattern. My question here is
1) Is there any other implementation of java.text.DateFormat like java.text.SimpleDateFormat (which is an implementation of DatePattern after all), which can accept oracle db's format pattern and return java.util.Date?
or
2) Is there any utility to draw java simpledateformat pattern from oracle db format pattern?
or
3) Can it be achieved in any other way?
Thanks in advance