Java Today getTodayDbFormat()

Here you can find the source of getTodayDbFormat()

Description

get Today Db Format

License

Open Source License

Declaration

public static String getTodayDbFormat() 

Method Source Code


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

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

public class Main {
    public static SimpleDateFormat dbSdf = new SimpleDateFormat("yyyy-MM-dd");

    public static String getTodayDbFormat() {
        return dbSdf.format(getToday());
    }// ww w  .  j a  v a 2  s . c  om

    public static Date getToday() {
        Calendar cal = Calendar.getInstance();
        return cal.getTime();
    }
}

Related

  1. getTodayDate()
  2. getTodayDate()
  3. getTodayDate()
  4. getTodayDateAsString()
  5. getTodayDateInString()
  6. getTodayDisplayString()
  7. getTodayEnd()
  8. getTodayEnd()
  9. getToDayEndTime()