Java tutorial
import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static void main(String[] args) throws Exception { SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy"); Date theDate = dateFormat.parse("01/01/2009"); System.out.println(dateFormat.format(theDate)); } } //01/01/2009