Java Parse Date Pattern YYYY parse(String s)

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

Description

parse

License

Open Source License

Declaration

public static Date parse(String s) throws ParseException 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    public static Date parse(String s) throws ParseException {
        // Not static to avoid locking problems
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
        return dateFormat.parse(s);
    }//ww  w.  j a va2 s.c  o  m
}

Related

  1. parse(String format, String val)
  2. parse(String input)
  3. parse(String original)
  4. parse(String param)
  5. parse(String param)
  6. parse(String s)
  7. parse(String s)
  8. parse(String s)
  9. parse(String s)