Java Calendar to String calendarDateToStrFormatddMMMyy(final Calendar cal)

Here you can find the source of calendarDateToStrFormatddMMMyy(final Calendar cal)

Description

calendar Date To Str Formatdd MM Myy

License

Open Source License

Declaration

public static String calendarDateToStrFormatddMMMyy(final 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 {
    public static String calendarDateToStrFormatddMMMyy(final Calendar cal) {
        final SimpleDateFormat dateFormat = new SimpleDateFormat("dd-MMM-yy");
        return dateFormat.format(cal.getTime());
    }//from w w w.ja v  a  2  s .c o  m
}

Related

  1. calendar2string(Calendar calendar, String formatString)
  2. calendarOutput(Calendar date)
  3. calendarParaString(Calendar cal)
  4. calendarToIso(Calendar c)
  5. calendarToSiteDataString(final Calendar cal)