Java Date Format Pattern getDBFormat()

Here you can find the source of getDBFormat()

Description

Returns instance of a SimpleDateFormat where the format has been set to yyyy-MM-dd hh:mm:ss.SSS

License

Open Source License

Return

a SimpleDateFormat object reference

Declaration

private static SimpleDateFormat getDBFormat() 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

public class Main {
    /**/* ww  w.j  ava  2  s  . c  o m*/
     * Returns instance of a SimpleDateFormat where the
     * format has been set to yyyy-MM-dd hh:mm:ss.SSS
     *
     * @return a SimpleDateFormat object reference
     */
    private static SimpleDateFormat getDBFormat() {
        SimpleDateFormat format = new SimpleDateFormat("yyyy'-'MM'-'dd HH:mm:ss.SSS");
        format.setLenient(false);
        return format;
    }
}

Related

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