Question: how to convert yyyymmdd to date in java?
Answer: String trDate="20120106"; Date tradeDate = new SimpleDateFormat("yyyyMMdd", Locale. ENGLISH). parse(trDate); String krwtrDate = new SimpleDateFormat("yyyy-MM-dd", Locale.