Java Date Now getCurrent()

Here you can find the source of getCurrent()

Description

get Current

License

Open Source License

Declaration

public static String getCurrent() 

Method Source Code


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

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

public class Main {
    public static final String commonDateFormat = "yyMMdd.HHmmss.SSS";

    public static String getCurrent() {
        SimpleDateFormat sdf = new SimpleDateFormat(commonDateFormat);
        Date curDate = new Date();
        String strDate = sdf.format(curDate);
        return strDate;
    }//  w  w w.j a v  a2 s  .  c  o  m
}

Related

  1. currentDateTimeMillis()
  2. currentDateTimeToEasySortedDateTime()
  3. currentGMTDateTime()
  4. currentSystemDate()
  5. currentXdsDate(int format)
  6. getCurrent()
  7. getCurrentAccurateDateTimeStringForPrint()
  8. getCurrentAgeByBirthdate(String brithday)
  9. getCurrentCacheTime()