Android Long to Date Convert getDateTimeString(long dateTime)

Here you can find the source of getDateTimeString(long dateTime)

Description

get Date Time String

License

Open Source License

Declaration

public static String getDateTimeString(long dateTime) 

Method Source Code

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

import java.text.SimpleDateFormat;

public class Main {
    public static String getDateTimeString(long dateTime) {
        SimpleDateFormat format = new SimpleDateFormat("HH:mm dd/MM/yy");
        StringBuilder dateString = new StringBuilder(
                format.format(dateTime));
        return dateString.toString();
    }/*from  w  w  w.  j a va  2 s  .c om*/
}

Related

  1. toTimeString(long milliseconds)
  2. stringForTime(long timeMs)
  3. getTimeString(long millis)
  4. parseTime(long time, String pattern)
  5. getDateByInt(long va)
  6. getLabelForEventInTime(long inTime)
  7. getTimeDelta(long delta, String dateFormat)
  8. timeAgo(long aTime)
  9. isTomorrow(long lTime)