Android Date Format String Create getSimpleDateFormatter()

Here you can find the source of getSimpleDateFormatter()

Description

get Simple Date Formatter

Declaration

public static SimpleDateFormat getSimpleDateFormatter() 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;
import java.util.Locale;

public class Main {
    private static SimpleDateFormat sDateFormat;

    public static SimpleDateFormat getSimpleDateFormatter() {
        if (sDateFormat == null) {
            sDateFormat = new SimpleDateFormat("yyyy-MM-dd", Locale.US);
        }// w  w w  .  j  a  va  2 s . c  o m

        return sDateFormat;
    }
}

Related

  1. changeFormat(String gmtString, String orgFormat, String format)
  2. convertFormat(String src, String f1, String f2)
  3. dateFormatToString(int date, Context context)
  4. getGMTDateFormat()
  5. getSimpleDateFormat()
  6. getDateByFormat(String strDate, String format)
  7. getStringByFormat(String strDate, String format)
  8. getMySQLDateFormat()