Java Parse Date Pattern YYYY parse(String DateStr)

Here you can find the source of parse(String DateStr)

Description

parse

License

Apache License

Declaration

public static Date parse(String DateStr) throws Exception 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static Date parse(String DateStr) throws Exception {
        return new SimpleDateFormat("yyyyMMdd").parse(DateStr);
    }/*from  www .  j  ava2  s . c om*/
}

Related

  1. parse(String date)
  2. parse(String date)
  3. parse(String date)
  4. parse(String date, String format)
  5. parse(String dateAsString)
  6. parse(String dateStr)
  7. parse(String datestr)
  8. parse(String dateStr)
  9. parse(String dateString)