Here you can find the source of parseDatetime(String value)
public static synchronized Date parseDatetime(String value)
//package com.java2s; //License from project: Apache License import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; public class Main { private static final SimpleDateFormat DATETIME_FORMATTER = new SimpleDateFormat("dd.MM.yyyy HH:mm", Locale.GERMAN);// ww w .j av a2 s . co m public static synchronized Date parseDatetime(String value) { try { return DATETIME_FORMATTER.parse(value); } catch (ParseException e) { throw new RuntimeException("Cannot parse " + value); } } }