Here you can find the source of parseddMMyyyy(String dateStr)
Parameter | Description |
---|---|
dateStr | the date str |
Parameter | Description |
---|---|
ParseException | the parse exception |
public static Date parseddMMyyyy(String dateStr) throws ParseException
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class Main { /**//w w w .j a va 2s. c o m * The Constant ddMMyyyy_DATE_FORMAT. */ public static final DateFormat ddMMyyyy_DATE_FORMAT = new SimpleDateFormat("ddMMyyyy"); /** * Parsedd m myyyy. * * @param dateStr the date str * @return the date * @throws ParseException the parse exception */ public static Date parseddMMyyyy(String dateStr) throws ParseException { final Date result = ddMMyyyy_DATE_FORMAT.parse(dateStr); return result; } }