Here you can find the source of parseEapoDate(String date)
public static Date parseEapoDate(String date)
//package com.java2s; //License from project: Open Source License import java.text.SimpleDateFormat; import java.util.Date; public class Main { private static final String EAPO_DATE_FORMAT = "yyyy.MM.dd"; public static Date parseEapoDate(String date) { try {//from ww w. j a va2 s . c o m return new SimpleDateFormat(EAPO_DATE_FORMAT).parse(date); } catch (Exception e) { throw new RuntimeException(e); } } }