0 Replies Latest reply: Nov 28, 2013 4:54 AM by Appu RSS

    Timestamp.valueOf("0000-00-00 00.00.0") works in Java 6 but not in Java 7

    Appu

      Hi All,

       

      I am working with Java and recently I came around something interesting.

       

      When I try java.sql.Timestamp.valueOf("0000-00-00 00:00:00.0") with older version Java 1.6 it is working and when run in Java 1.7 it is returning "Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]".

      Tried to find a cause in the Java Doc but with no conclusion.

       

      Can someone explain me the reason please.

       

      Thanks in advance.

      Appu