Java Today formatToday()

Here you can find the source of formatToday()

Description

format Today

License

Open Source License

Declaration

public static String formatToday() 

Method Source Code

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

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    private static final SimpleDateFormat FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    public static String formatToday() {
        return format(new Date());
    }/*from   w w  w .  j  av a2 s  .  c om*/

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

Related

  1. createTodayDirectory(File destDir)
  2. createTodayDirectory(File destDir, String inputFileName)
  3. createTodayPrefixedDirectory(final String prefix, final File parent)
  4. deletePreviousDay(Calendar today, String temppath)
  5. endOfToday()
  6. formatToday()
  7. formatToDays(Date date)
  8. getAllToday()
  9. getBetweenTodaysStartDateAndEndDate(Date startDate, Date endDate)