com.danieleturi.util
Class MyCalendar
java.lang.Object
|
+--com.danieleturi.util.MyCalendar
- public class MyCalendar
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MyCalendar
public MyCalendar()
isPast
public static boolean isPast(Calendar cal)
stringToCal
public static Calendar stringToCal(String date,
String format)
throws ParseException
ParseException
stringToDate
public static Date stringToDate(String date,
String format)
throws ParseException
ParseException
ymdToDate
public static Date ymdToDate(String year,
String month,
String day)
throws ParseException
ParseException
dateToString
public static String dateToString(Date date,
String format)
getYear
public static int getYear(Date date)
getMonth
public static int getMonth(Date date)
getDay
public static int getDay(Date date)
getYearString
public static String getYearString(Date date)
getMonthString
public static String getMonthString(Date date)
getDayString
public static String getDayString(Date date)
twoDigits
public static String twoDigits(String v)
isDay
public static boolean isDay(int dayOfWeek,
Calendar cal)
isDay
public static boolean isDay(int dayOfWeek,
Date date)
isThursday
public static boolean isThursday(Calendar cal)
isThursday
public static boolean isThursday(Date date)
isFriday
public static boolean isFriday(Calendar cal)
isFriday
public static boolean isFriday(Date date)