Here you can find the source of parseDateYYMMddHHmm(java.util.Date date)
public static String parseDateYYMMddHHmm(java.util.Date date) throws ParseException
//package com.java2s; import java.sql.Date; import java.text.ParseException; import java.text.SimpleDateFormat; public class Main { public final static String DATE_FORMAT_yyMMddHHmm = "yyMMddHHmm"; public static String parseDateYYMMddHHmm(java.util.Date date) throws ParseException { return new SimpleDateFormat(DATE_FORMAT_yyMMddHHmm).format(date); }//w w w . j a va2 s. c o m public static java.util.Date parseDateYYMMddHHmm(String ds) throws ParseException { return new Date(new SimpleDateFormat(DATE_FORMAT_yyMMddHHmm).parse(ds).getTime()); } }