Android Calendar to String Convert calendarToString(Calendar date)

Here you can find the source of calendarToString(Calendar date)

Description

calendar To String

Declaration

public static String calendarToString(Calendar date) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class Main {
    public static String calendarToString(Calendar date) {
        SimpleDateFormat dateformatter = new SimpleDateFormat(
                "dd/MM/yyyy HH:mm:ss");

        return dateformatter.format(date.getTime());
    }/*from   ww  w  . j  a va  2  s .  c  om*/
}

Related

  1. convertToDateStamp(Calendar cal)
  2. toSimpleDate(Calendar calendar)
  3. toHumanDate(Calendar cal)