Java Today today(String format)

Here you can find the source of today(String format)

Description

today

License

Open Source License

Declaration

public static String today(String format) 

Method Source Code


//package com.java2s;

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

public class Main {
    public static String today(String format) {
        Date date = Calendar.getInstance().getTime();
        return new SimpleDateFormat(format).format(date);
    }/*from  w w  w .  j  a v  a 2 s .  c o  m*/
}

Related

  1. Today()
  2. today()
  3. today()
  4. today()
  5. toDay(final String dateString)
  6. today(String pattern)
  7. today(String strFormat)
  8. todayAsSimpleIsoDate(Date date)
  9. todayAsXSDDateString()