Java Timestamp Create getTimeStamp()

Here you can find the source of getTimeStamp()

Description

get Time Stamp

License

Apache License

Declaration

public static String getTimeStamp() 

Method Source Code

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

import java.text.DateFormat;

import java.util.Date;

public class Main {

    public static String getTimeStamp() {
        return String.valueOf(new Date().getTime()).substring(0, 10);
    }//from   w  ww  .ja  v a 2 s.c  o  m

    public static String getTime() {
        return DateFormat.getDateTimeInstance().format(new Date());
    }
}

Related

  1. getTimestamp()
  2. getTimeStamp()
  3. getTimeStamp()
  4. getTimestamp()
  5. getTimestamp()
  6. getTimestamp()
  7. getTimeStamp()
  8. getTimestamp()
  9. getTimestamp()