This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
i use java+Oracle. when i insert my date into my table,i write a serials of SQL as following: insert into mytable values('10002',to_date('2002-10-12','yyyy-mm-dd')); when i search this record. 1.in the sqlplus env,i can get the exact records. 2.in the jsp file . i use java.text.SimpleDateFormat to format the Date like this: SimpleDateFormat sdfTmp=new SimpleDateFormat("yyyy-MM-dd"); String strTime=sdfTmp.format(rs.getDate("order_date")); but the strTime is not exactly show as the in the sqlplus env. why?