Java Day of long2StringPerDay(long t, SimpleDateFormat sdf)

Here you can find the source of long2StringPerDay(long t, SimpleDateFormat sdf)

Description

long String Per Day

License

Open Source License

Declaration

public static String long2StringPerDay(long t, SimpleDateFormat sdf) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static String long2StringPerDay(long t) {

        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
        return sdf.format(new Date(t));
    }/*from  ww w . j ava 2  s .c om*/

    public static String long2StringPerDay(long t, SimpleDateFormat sdf) {

        return sdf.format(new Date(t));
    }
}

Related

  1. isIn(int reserveDayCount, String dateString)
  2. isInAllDayFormat(String date)
  3. isNowDay(String d)
  4. isSomeDay(String date)
  5. lastDays(int count)
  6. minDayToLong(String time)
  7. minusDate(int day, int type)
  8. nextDay(Date date)
  9. nowDayString()