Here you can find the source of formatDate(long date, String langStr)
public static String formatDate(long date, String langStr)
//package com.java2s; //License from project: Open Source License import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Locale; public class Main { public static String formatDate(long date, String langStr) { DateFormat df = SimpleDateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL, Locale.forLanguageTag(langStr)); return df.format(date); }/*from ww w . ja v a 2s. co m*/ }