Java Time Format getFormat2TimetagStr()

Here you can find the source of getFormat2TimetagStr()

Description

get Format Timetag Str

License

Open Source License

Declaration

public static String getFormat2TimetagStr() 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static final SimpleDateFormat format2 = new SimpleDateFormat("yyyyMMddHHmmss");

    public static String getFormat2TimetagStr() {
        return format2.format(new Date());
    }/*from w w w . j av  a  2 s.co m*/
}

Related

  1. getCurrDatetimeWithDbFormat()
  2. getCurTime(String dateformat)
  3. getDefaultDatetimeFormat()
  4. getDefaultPropertyPageDateTimeFormat()
  5. getEndDate(String time, SimpleDateFormat dateFormat)
  6. getFormatDate(Date date, boolean ShowTimePart_in)
  7. getFormatDate(String timeString, String format)
  8. getFormatDatetime()
  9. getFormatDateTime(Date date)