Here you can find the source of cal2Str(Calendar pCal)
Gets string representation of given Calendar.
private static String cal2Str(Calendar pCal)
//package com.java2s; import java.util.*; public class Main { /**/*from w ww . ja v a2 s .c o m*/ * <p>Gets string representation of given Calendar.</p> */ private static String cal2Str(Calendar pCal) { StringBuffer str = new StringBuffer(); if (pCal != null) { int month = pCal.get(Calendar.MONTH) + 1; int date = pCal.get(Calendar.DATE); int year = pCal.get(Calendar.YEAR); str.append(month); str.append("/" + date); str.append("/" + year); } return str.toString(); } }