Java Date Now currentDateString()

Here you can find the source of currentDateString()

Description

current Date String

License

Apache License

Declaration

public static String currentDateString() 

Method Source Code

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

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

public class Main {
    public static final SimpleDateFormat DEFAULT_DATE_FORMAT = new SimpleDateFormat("MM/dd/yy");

    public static String currentDateString() {
        Date now = new Date();
        return (DEFAULT_DATE_FORMAT.format(now));
    }//from   ww w  . j  a v  a 2 s.  c o  m
}

Related

  1. currentDate_DDMMYY()
  2. currentDateAsString()
  3. currentDatePath(String basePath)
  4. currentDateStr()
  5. currentDateStr(String format)
  6. currentDateTime(long time, int type)
  7. currentDateTimeMillis()
  8. currentDateTimeToEasySortedDateTime()
  9. currentGMTDateTime()