Java Long Number to Time formattaData(long date)

Here you can find the source of formattaData(long date)

Description

formatta Data

License

Apache License

Declaration

public static String formattaData(long date) 

Method Source Code


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

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

public class Main {
    private final static SimpleDateFormat _data = new SimpleDateFormat("dd/MM/yyyy");

    public static String formattaData(long date) {
        try {/*w  w w  . j  a va2s  .  c o  m*/
            return _data.format(new Date(date));
        } catch (Exception e) {

        }
        return "";
    }
}

Related

  1. convertUnixTimeStampToMySql(long timestamp)
  2. createCookie(String name, String value, String path, String domain, long stateTimeToLive)
  3. createFileDateTimeString(final Long ms)
  4. elapsedTime(long start, long end)
  5. elapsedTimeToString(long elapsedTime)
  6. formatTime(long date)
  7. formatTime(long ms)
  8. formatTimestampLong(long timestamp, String datepattern, TimeZone tz)
  9. formatToUTC(long datetime)