Here you can find the source of parseDate(String date)
private static Date parseDate(String date)
//package com.java2s; //License from project: Open Source License import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class Main { private static Date parseDate(String date) { try {/* ww w. ja va 2 s. c om*/ return createFormater().parse(date); } catch (ParseException e) { throw new RuntimeException("Unexpected date format " + date); } } private static SimpleDateFormat createFormater() { return new SimpleDateFormat("dd.MM.yyyy HH:mm:ss.S"); } }