SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); java.util.Date need_date = sdf.parse("2005-02-02"); http://tracylau.iteye.com/blog/23896