Java Random Date getDateRandom()

Here you can find the source of getDateRandom()

Description

get Date Random

License

Apache License

Declaration

public static String getDateRandom() 

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 getDateRandom() {
        String s = new SimpleDateFormat("yyyyMMddHHmmssSSS").format(new Date());
        return s;
    }//  w  ww. j  a v a2  s  . c  om
}

Related

  1. generateRandomDate()
  2. getDateRand()
  3. getDateRand(Date date)
  4. getDateRandomId()
  5. getRandomDate()
  6. getRandomDate(Random ran, boolean idNewID)