Here you can find the source of parseDateTimeHuman(String dateString)
public static Date parseDateTimeHuman(String dateString)
//package com.java2s; //License from project: Apache License import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static final String DATE_TIME_PATTERN_HUMAN = "dd/MM/yyyy HH:mm"; public static Date parseDateTimeHuman(String dateString) { DateFormat df = new SimpleDateFormat(DATE_TIME_PATTERN_HUMAN); Date date;/* w w w. j a v a 2 s . c o m*/ try { date = df.parse(dateString); } catch (ParseException e) { date = new Date(); } return date; } }