Java Parse Date Pattern YYYY parse(Long date)

Here you can find the source of parse(Long date)

Description

parse

License

Open Source License

Declaration

public static Date parse(Long date) 

Method Source Code

//package com.java2s;

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

import java.util.Date;

public class Main {
    private static final SimpleDateFormat DB_FORMAT = new SimpleDateFormat("yyyyMMddHHmmss");

    public static Date parse(Long date) {
        try {/*from w w w.  j  a  v a  2  s  .c o  m*/
            return DB_FORMAT.parse(String.valueOf(date));
        } catch (ParseException e) {
            return null;
        }
    }
}

Related

  1. parse(final String dateString)
  2. parse(final String inputDate)
  3. parse(final String s)
  4. parse(final String source)
  5. parse(final String source)
  6. parse(Long time)
  7. parse(Object object)
  8. parse(String calendarString)
  9. parse(String d)