Here you can find the source of convertToDate(String ddMMyy)
Parameter | Description |
---|---|
ddMMyy | a parameter |
log | a parameter |
public static Date convertToDate(String ddMMyy) throws Exception
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; public class Main { /**/*from www . ja va 2 s.c o m*/ * convert to date * @param ddMMyy * @param log * @return */ public static Date convertToDate(String ddMMyy) throws Exception { SimpleDateFormat format = new SimpleDateFormat("ddMMyy"); format.setLenient(false); Date date = null; date = format.parse(ddMMyy); return date; } }