Here you can find the source of getDateTime(String dateTime)
public static java.util.Date getDateTime(String dateTime)
//package com.java2s; //License from project: Apache License public class Main { public static java.util.Date getDateTime(String dateTime) { java.util.Date strDate = java.sql.Date.valueOf(dateTime); return strDate; }/*from ww w. j ava 2 s . c o m*/ }