Android Long to Date Convert format(String aFormat, long aDate)

Here you can find the source of format(String aFormat, long aDate)

Description

format

License

Apache License

Declaration

public static String format(String aFormat, long aDate) 

Method Source Code

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

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static String format(String aFormat, long aDate) {
        SimpleDateFormat format = new SimpleDateFormat(aFormat);
        return format.format(new Date(aDate));
    }/*from  ww w  .  ja v  a 2  s .  co m*/
}

Related

  1. dateFromUnixTimestamp(final long unixTimestamp)
  2. dateFromUtc(long milliseconds)
  3. dateUtil(long date)
  4. daysSinceTimestamp(long timestamp)
  5. encodeDate(long date)
  6. formatDuration(Context context, long millis)
  7. formatDurationShort(Context context, long millis)
  8. formatPublishDaysAgo(long timestamp)
  9. formatTime(final long time)