Java tutorial
//package com.java2s; import java.text.DateFormat; import java.text.SimpleDateFormat; public class Main { public static DateFormat GetDateFormatter() { SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy"); //df.setTimeZone(TimeZone.getTimeZone("UTC")); return df; } }