Java Date Format Pattern getDataFormatter()

Here you can find the source of getDataFormatter()

Description

Get a Date formatter for the common API date format

License

Open Source License

Return

A date formatter with the pattern 'yyyy-mm-dd hh:mm:ss'

Declaration

public static DateFormat getDataFormatter() 

Method Source Code


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

import java.text.DateFormat;
import java.text.SimpleDateFormat;

public class Main {
    private static SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    /**/*from  www. j a v a 2  s . c o  m*/
     * Get a Date formatter for the common API date format
     *
     * @return A date formatter with the pattern 'yyyy-mm-dd hh:mm:ss'
     */
    public static DateFormat getDataFormatter() {
        return simpleDateFormat;
    }
}

Related

  1. createSimpleFormat()
  2. createThreadLocal(final String format)
  3. get8charDateFormat()
  4. getCommandFormat()
  5. getDataAtual(String formato)
  6. getDBFormat()
  7. getExcelFormat()
  8. getFolderFormat()
  9. getFormat()