Java Timestamp Now generateTimeStamp()

Here you can find the source of generateTimeStamp()

Description

generate Time Stamp

License

Open Source License

Declaration

public static String generateTimeStamp() 

Method Source Code

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

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

public class Main {
    public static String generateTimeStamp() {
        SimpleDateFormat dateFormat = new SimpleDateFormat("yy-MM-dd-HH-mm-ss");
        Date date = new Date();
        return dateFormat.format(date);
    }//from ww  w .  j  a va  2  s.c  o m
}

Related

  1. currentTimestamp()
  2. currentTimestamp()
  3. currentTimestamp2String(String pattern)
  4. currentTimestampPlus(final long seconds)
  5. generateTimestamp()
  6. generateTimestamp()
  7. generateTimestamp()
  8. getAfterSecond(Timestamp currentDate)
  9. getCurrentAgeForDate(Timestamp birthDate, Timestamp endDate)