1

Error SimpleDateFormat

view story
linux-howto

http://stackoverflow.com – I have to enter the date in sqlite db. I get error, I do not understand why. can someone help me? SimpleDateFormat sdf = new SimpleDateFormat( "yyyy-MM-dd" ); String strDate = sdf.format( dateAndTime ); cv.put(MyTable.DATE, strDate); this is the error: Caused by: java.lang.IllegalArgumentException at java.text.DateFormat.format(DateFormat.java:361) at java.text.Format.format(Format.java:93) Caused by: java.lang.IllegalArgumentException at java.text.DateFormat.format(DateFormat.java:361) at java.text.Format.format(Format.java:93) (HowTos)