Java Calendar Day getDayStr(Calendar cal)

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

Description

get Day Str

License

Open Source License

Declaration

public static String getDayStr(Calendar cal) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Calendar;

public class Main {
    public static String getDayStr(Calendar cal) {
        return cal.get(Calendar.DATE) > 9 ? "" + cal.get(Calendar.DATE)
                : "0" + cal.get(Calendar.DATE);
    }/* w  w  w.  ja v a2s .  c  o  m*/
}

Related

  1. getDay(Calendar calendar)
  2. getDayEndCalendar(Calendar cal)
  3. getDayName(Calendar cal)
  4. getDayOfPeriod(Calendar cal, long timems)
  5. getDaysFromThen(Calendar aDate)
  6. getDayString(Calendar cal1)
  7. getDayStringByCalendar(Calendar calendar)
  8. getEndDay(Calendar cal)
  9. getEndOfDay(Calendar c)