Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String convertDateFormat(String datetime) { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss+0000"); Date testDate = null; try { testDate = sdf.parse(datetime); } catch (Exception ex) { ex.printStackTrace(); } SimpleDateFormat formatter = new SimpleDateFormat("yyyy.MM.dd"); return formatter.format(testDate); } }