List of utility methods to do Year Format
String | toYYYYMMDD(Calendar cal) to YYYYMMDD return sdf.format(cal.getTime());
|
Date | toYyyyMMddToDate(String date) to Yyyy M Mdd To Date return yyyyMMdd.parse(date);
|
Date | unmarshalYYYYMMDD(String date) unmarshal YYYYMMDD try { return dfYYYYMMDD.parse(date); } catch (ParseException ex) { ex.printStackTrace(); return null; |
String | yyyyMMdd(Date date) yyyy M Mdd return dateFormat4yyyyMMdd().format(date);
|
String | yyyyMMdd(Date date) yyyy M Mdd return getDateFormat(b).format(date);
|
String | yyyymmddFormat(Date date) yyyymmdd Format SimpleDateFormat yyyymmddFormat = new SimpleDateFormat("yyyy-MM-dd", Locale.ENGLISH); return yyyymmddFormat.format(date); |
SimpleDateFormat | yyyyMMddFormatter() yyyy M Mdd Formatter return new SimpleDateFormat("yyyyMMdd"); |
Date | yyyyMMddHHmmss2date(String str) yyyy M Mdd H Hmmssdate DateFormat format = new SimpleDateFormat(yyyyMMddHHmmss); Date date = new Date(); try { date = format.parse(str); } catch (ParseException e) { e.printStackTrace(); return date; ... |
Date | yyyyMMddStringToDate(String date) yyyy M Mdd String To Date return new SimpleDateFormat("yyyy.MM.dd").parse(date); |