Java Date Now getCurrentDate(boolean WithDelimeter)

Here you can find the source of getCurrentDate(boolean WithDelimeter)

Description

get Current Date

License

Open Source License

Declaration

public static String getCurrentDate(boolean WithDelimeter) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {

    public static String getCurrentDate(boolean WithDelimeter) {
        if (WithDelimeter)
            return new SimpleDateFormat("yyyy/MM/dd").format(new Date());
        return new SimpleDateFormat("yyyyMMdd").format(new Date());
    }//from  ww  w . j a v  a 2 s . com
}

Related

  1. getCurrentDate()
  2. getCurrentDate()
  3. getCurrentDate()
  4. getCurrentDate()
  5. getCurrentDate()
  6. getCurrentDate(Date date)
  7. getCurrentDate(final String form)
  8. getCurrentDate(final String FORMAT)
  9. getCurrentDate(String format)