Java tutorial
//package com.java2s; public class Main { private static String format_date_short(String date) { String day = date.split("\\/")[0]; String month = date.split("\\/")[1]; String year = date.split("\\/")[2]; if (day.length() == 1) day = 0 + day; if (month.length() == 1) month = 0 + month; year = year.substring(2); return day + "/" + month + "/" + year; } }