Java tutorial
//package com.java2s; public class Main { public static String convertDate(String date1) { try { String date = date1.substring(0, date1.indexOf(" ")); String year = date.substring(0, 4); String month = date.substring(5, 7); String day = date.substring(8, 10); return day + "/" + month + "/" + year; } catch (Exception e) { return date1; } } }