Here you can find the source of calendarParaString(Calendar cal)
public static String calendarParaString(Calendar cal)
//package com.java2s; //License from project: Open Source License import java.text.SimpleDateFormat; import java.util.Calendar; public class Main { private static SimpleDateFormat dataFormatada = new SimpleDateFormat("dd/MM/yyyy"); public static String calendarParaString(Calendar cal) { return dataFormatada.format(cal.getTime()); }/*from www.j av a 2 s. c om*/ }