Android Calendar Get extractDateFromCalendarTime(Calendar time)

Here you can find the source of extractDateFromCalendarTime(Calendar time)

Description

extract Date From Calendar Time

Declaration

public static String extractDateFromCalendarTime(Calendar time) 

Method Source Code

//package com.java2s;
import java.text.SimpleDateFormat;
import java.util.Calendar;

public class Main {
    public static String extractDateFromCalendarTime(Calendar time) {
        SimpleDateFormat dateFormatter = new SimpleDateFormat("dd-MM-yyyy");
        return dateFormatter.format(time.getTime());
    }//from w  ww.  j a va  2s .c o m
}

Related

  1. getTimeMillis()
  2. getWeek(final Calendar calendar)
  3. getWeek(final Long date)
  4. getYear()
  5. getYear(Calendar c)
  6. extractTimeFromCalendarTime(Calendar time)
  7. getCurrentCalendar()
  8. getCurrentDateByOffset(String format, int calendarField, int offset)
  9. getCalenderFromDateString(String dateString)