Java Calendar to String calendarParaString(Calendar cal)

Here you can find the source of calendarParaString(Calendar cal)

Description

calendar Para String

License

Open Source License

Declaration

public static String calendarParaString(Calendar cal) 

Method Source Code

//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*/
}

Related

  1. calendar2string(Calendar calendar, String formatString)
  2. calendarDateToStrFormatddMMMyy(final Calendar cal)
  3. calendarOutput(Calendar date)
  4. calendarToIso(Calendar c)
  5. calendarToSiteDataString(final Calendar cal)
  6. calendarToStorageRoomTimeString(Calendar cal)
  7. calendarToString(Calendar c)