Java tutorial
//package com.java2s; import java.util.Calendar; public class Main { public static String toDateString(Calendar date) { int day = date.get(Calendar.DAY_OF_MONTH); int month = date.get(Calendar.MONTH); int year = date.get(Calendar.YEAR); return day + "/" + (month + 1) + "/" + year; } }