Here you can find the source of formatDate(String _Date)
public static Date formatDate(String _Date) throws ParseException
//package com.java2s; //License from project: Open Source License import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; public class Main { public static Date formatDate(String _Date) throws ParseException { if (_Date == null) return new Date(); SimpleDateFormat _SimpleDateFormat = new SimpleDateFormat("yyyy-MM-dd", Locale.SIMPLIFIED_CHINESE); return _SimpleDateFormat.parse(_Date); }/*ww w . j ava 2 s. c o m*/ }