Java Today todaySortedTimestamp()

Here you can find the source of todaySortedTimestamp()

Description

today Sorted Timestamp

License

Apache License

Declaration

public static String todaySortedTimestamp() 

Method Source Code


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

import java.text.DateFormat;

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

public class Main {
    public static String todaySortedTimestamp() {
        return sortedTimestampFormat(today());
    }//  w w  w. j  a  va 2 s . co m

    public static String sortedTimestampFormat(Date date) {
        return getSortedTimetampFormat().format(date);
    }

    public static Date today() {
        return new Date();
    }

    public static DateFormat getSortedTimetampFormat() {
        return new SimpleDateFormat("yyyyMMddHHmmss");
    }
}

Related

  1. todayDate()
  2. todayMinute()
  3. todayPlusDays(int days)
  4. toDaysBeforeOrAfter(Date date, Integer days)
  5. todaysDate(int style)
  6. todayStart()
  7. todaysTime()
  8. todayStr()
  9. todayString(final String sFormat)