Java Year Format unmarshalYYYYMMDD(String date)

Here you can find the source of unmarshalYYYYMMDD(String date)

Description

unmarshal YYYYMMDD

License

Open Source License

Declaration

public static Date unmarshalYYYYMMDD(String date) 

Method Source Code


//package com.java2s;
import java.text.DateFormat;
import java.text.ParseException;

import java.util.Date;

public class Main {
    private static DateFormat dfYYYYMMDD = null;

    public static Date unmarshalYYYYMMDD(String date) {

        try {/*from  w  w w  . ja v a2s.  c  o m*/

            return dfYYYYMMDD.parse(date);

        } catch (ParseException ex) {

            ex.printStackTrace();

            return null;

        }

    }
}

Related

  1. stringYYYYmmDDhhMMssToDate(String value)
  2. toDateString(String ddMMMyyyy)
  3. toYYYYMM(Date date)
  4. toYYYYMMDD(Calendar cal)
  5. toYyyyMMddToDate(String date)
  6. yyyyMMdd(Date date)
  7. yyyyMMdd(Date date)
  8. yyyymmddFormat(Date date)
  9. yyyyMMddFormatter()