com.rapapp.platform.server.script.DateUtils

Method Summary

Date clearTime(Date date)
Returns the given date with the time values cleared.
Date getEnd(Date date)
Returns the given date with time set to the end of the day
Date getStart(Date date)
Returns the given date with the time set to the start of the day.
boolean hasTime(Date date)
Determines whether or not a date has any time values.
boolean isAfterDay(Calendar cal1, Calendar cal2)
Checks if the first calendar date is after the second calendar date ignoring time.
boolean isAfterDay(Date date1, Date date2)
Checks if the first date is after the second date ignoring time.
boolean isBeforeDay(Calendar cal1, Calendar cal2)
Checks if the first calendar date is before the second calendar date ignoring time.
boolean isBeforeDay(Date date1, Date date2)
Checks if the first date is before the second date ignoring time.
boolean isSameDay(Calendar cal1, Calendar cal2)
Checks if two calendars represent the same day ignoring time.
boolean isSameDay(Date date1, Date date2)
Checks if two dates are on the same day ignoring time.
boolean isToday(Calendar cal)
Checks if a calendar date is today.
boolean isToday(Date date)
Checks if a date is today.
boolean isWithinDates(Date date, Date start, Date end)
boolean isWithinDaysFuture(Calendar cal, int days)
Checks if a calendar date is after today and within a number of days in the future.
boolean isWithinDaysFuture(Date date, int days)
Checks if a date is after today and within a number of days in the future.
boolean isWithinDaysPast(Calendar cal, int days)
Checks if a calendar date is before today and within a number of days in the past.
boolean isWithinDaysPast(Date date, int days)
Checks if a date is before today and within a number of days in the past.
boolean isWithinMonthsPast(Calendar cal, int months)
Checks if a calendar date is before today and within a number of months in the past.
boolean isWithinMonthsPast(Date date, int months)
Checks if a date is before today and within a number of months in the past.
Date max(Date d1, Date d2)
Returns the maximum of two dates.
Date min(Date d1, Date d2)
Returns the minimum of two dates.
String timeAgo(Date date)
Returns a user friendly String representing the given date e.g. 2 hours ago
String format(Date d, String pattern)
Formats d into a date/time string according to the given pattern
Date parse(String dateString, String pattern)
Parses dateString using the pattern to produce a date

Location

101 California Street, Suite 2710
San Francisco, CA 94111


440 N. Wolfe Rd.
Sunnyvale, CA 94085


Office 11, 5th Floor, Building 9,
Mindspace IT Park
Hyderabad 500081

p: +1 (844) AT CloudIO (844-282-5683)
f: +1 (650) 300-5247 | e: sales@cloudio.io
© 2009, 2017 CloudIO Inc. | Terms of Use | Privacy Policy