Java Now nowAs14CharString()

Here you can find the source of nowAs14CharString()

Description

now As Char String

License

Open Source License

Declaration

public static String nowAs14CharString() 

Method Source Code

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

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.*;

public class Main {
    public static String nowAs14CharString() {
        final DateFormat format = new SimpleDateFormat("yyyyMMddHHmmss");
        return format.format(new Date());
    }/*from w  w  w  . j  av  a2 s  . c om*/
}

Related

  1. now(String dateFormat)
  2. now(String formatStr)
  3. now(String pattern)
  4. now(String s, Date date)
  5. now_TimeZone_BY()
  6. nowAsAnsiDate()
  7. nowAsString()
  8. nowAsXSDDateTimeString()
  9. nowDate()