Java tutorial
//package com.java2s; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Locale; import java.util.TimeZone; public class Main { public static DateFormat GetFileNameDateFormatter() { Locale loc = new Locale("en", "US"); SimpleDateFormat df = new SimpleDateFormat("MM.dd.yy.h.mm.ss", loc); df.setTimeZone(TimeZone.getTimeZone("UTC")); return df; } }