Here you can find the source of parseMySQLDateTime(String date)
public static Date parseMySQLDateTime(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 final SimpleDateFormat mySQLDateTimeFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); public static Date parseMySQLDateTime(String date) { try {/*from ww w .java 2s . c o m*/ return mySQLDateTimeFormat.parse(date); } catch (ParseException e) { e.printStackTrace(); } return null; } }