Java Parse Date Pattern YYYY parseTIPPDate(String dateString)

Here you can find the source of parseTIPPDate(String dateString)

Description

parse TIPP Date

License

Apache License

Declaration

static Date parseTIPPDate(String dateString) 

Method Source Code


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

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

public class Main {
    private static final String FORMAT = "yyyy-MM-dd'T'HH:mm:ss";

    static Date parseTIPPDate(String dateString) {
        try {/*from  ww  w . j  a v a 2 s.  c  om*/
            SimpleDateFormat df = new SimpleDateFormat(FORMAT);
            return df.parse(dateString);
        } catch (ParseException e) {
            throw new IllegalArgumentException("Invalid date string: " + dateString);
        }
    }
}

Related

  1. parseStringToDate(final String pDate, final String... pFormat)
  2. parseStringToDate(String date)
  3. parseStringToDate(String dateString)
  4. parseStringToDatePrettyPrint(Date date)
  5. parseStringToUtilDate(String strDate)
  6. parseToDate(final String date, final String format)
  7. parseToDate(String date)
  8. parseToDate(String date, String format)
  9. parseToDateLenient(final String date, final String format, final boolean lenient)