Java Parse Date Pattern YYYY parse_default(String time)

Here you can find the source of parse_default(String time)

Description

parsdefault

License

Apache License

Declaration

public static Object parse_default(String time) 

Method Source Code


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

import java.text.ParseException;
import java.text.SimpleDateFormat;

public class Main {
    public static SimpleDateFormat FORMATER_3 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    public static Object parse_default(String time) {
        try {//from www.j a  va2s  .  c  om
            return FORMATER_3.parseObject(time);
        } catch (ParseException e) {
            e.printStackTrace();
        }

        return null;
    }
}

Related

  1. parse(String text)
  2. parse(String time)
  3. parse(String time, String df)
  4. parse1(String DateString, String dateTimeSeparator)
  5. parse2DateString(String date)
  6. parseApplePurchaseDate(String dateStr)
  7. parseArgument(String textDate)
  8. parseAscTime(String date)
  9. parseAsDateTime(String date)