Java Date Now getCurrentDateDBFormat()

Here you can find the source of getCurrentDateDBFormat()

Description

get Current Date DB Format

License

Open Source License

Declaration

public static String getCurrentDateDBFormat() 

Method Source Code


//package com.java2s;

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

public class Main {
    public static SimpleDateFormat dateFormatDB = new SimpleDateFormat("yyyyMMdd");

    public static String getCurrentDateDBFormat() {
        Date current = new Date(System.currentTimeMillis());
        return dateFormatDB.format(current);
    }//  w  ww  .  java2s  .  c o  m
}

Related

  1. getCurrentDateAsNumericEncodedByteArray()
  2. getCurrentDateAsString()
  3. getCurrentDateAsString(DateFormat df)
  4. getCurrentDateAsString(String timestampFormat)
  5. getCurrentDateByString(String datePattern)
  6. getCurrentDateFormat()
  7. getCurrentDateFormated()
  8. getCurrentDateInMillis()
  9. getCurrentDateInSqlFormat()