Java Date Now getCurrentDateStr()

Here you can find the source of getCurrentDateStr()

Description

get Current Date Str

License

Open Source License

Declaration

public static String getCurrentDateStr() 

Method Source Code

//package com.java2s;

import java.util.*;
import java.text.DateFormat;

public class Main {
    public static String getCurrentDateStr() {
        Date date = new Date();
        DateFormat dtf = DateFormat.getDateTimeInstance(DateFormat.MEDIUM,
                DateFormat.MEDIUM);
        String str = dtf.format(date);

        return str;
    }//from   w w  w  .ja  va  2  s  . c o  m
}

Related

  1. getCurrentDateInyyyyMMddFormat()
  2. getCurrentDateINYYYYMMDDHHMMSSwithColons()
  3. getCurrentDateMMDDYYYY()
  4. getCurrentDateSlashStr()
  5. getCurrentDateStr()
  6. getCurrentDateStr()
  7. getCurrentDateStr()
  8. getCurrentDateStr(String pattern)
  9. getCurrentDateString()