Java Parse Date Pattern YYYY parseToStringDate(long ms)

Here you can find the source of parseToStringDate(long ms)

Description

parse To String Date

License

Apache License

Declaration

public static String parseToStringDate(long ms) 

Method Source Code

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

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

public class Main {
    public static final String FROMAT_2 = "yyyyMMdd";

    public static String parseToStringDate(long ms) {
        SimpleDateFormat format = new SimpleDateFormat(FROMAT_2);
        String time = format.format(new Date(ms));
        return time;
    }/*ww w.j  a va 2s. co m*/
}

Related

  1. parseToGregorianCalendar(String dateString)
  2. parseToRegExcel(String raw)
  3. parseToString(Date date)
  4. parseToString(Date date, String format)
  5. parseToString(final Date date, final String format)
  6. parseTwitterDate(String theDate)
  7. parseUserDate(String date)
  8. parseUsGeneralDateTime(Date value)
  9. parseVariuosDateTime(String dateStr)