Java Parse Date Pattern YYYY parseUserDate(String date)

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

Description

parse User Date

License

Open Source License

Declaration

public static Date parseUserDate(String date) throws ParseException 

Method Source Code

//package com.java2s;
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt

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

public class Main {
    private static final DateFormat userDateFormat = new SimpleDateFormat(
            "yyyy-MM-dd'T'HH:mm:ss");

    public static Date parseUserDate(String date) throws ParseException {
        synchronized (userDateFormat) {
            return userDateFormat.parse(date);
        }//w ww.  ja  v a  2 s . com
    }
}

Related

  1. parseToString(Date date)
  2. parseToString(Date date, String format)
  3. parseToString(final Date date, final String format)
  4. parseToStringDate(long ms)
  5. parseTwitterDate(String theDate)
  6. parseUsGeneralDateTime(Date value)
  7. parseVariuosDateTime(String dateStr)
  8. parseW3CDate(String dateString)
  9. parseW3CDateRobust(String dateString)