Here you can find the source of getSimpleDateFormatter()
public static SimpleDateFormat getSimpleDateFormatter()
//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; } }