Java tutorial
import java.util.Date; import java.util.Locale; public class PrintfExamples { public static void main(String[] args) { System.out.printf(Locale.ITALIAN, "The date is %tc\n", new Date()); System.out.printf(Locale.CHINA, "The date is %tc\n", new Date()); System.out.printf(Locale.FRENCH, "The date is %tc\n", new Date()); System.out.printf(Locale.GERMAN, "The date is %tc\n", new Date()); } } /* The date is ven ott 31 16:28:06 PDT 2008 The date is ??? ?? 31 16:28:07 PDT 2008 The date is ven. oct. 31 16:28:08 PDT 2008 The date is Fr Okt 31 16:28:08 PDT 2008 */