public class Date
extends Object
GDK enhancements for Date.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Date |
clearTime()Clears the time portion of this java.sql.Date instance; useful utility where it makes sense to compare month/day/year only portions of a Date. |
|
public Date |
minus(int days)Subtract a number of days from this date and returns the new date. |
|
public Date |
next()Increment a java.sql.Date by one day. |
|
public Date |
plus(int days)Add a number of days to this date and returns the new date. |
|
public Date |
previous()Decrement a java.sql.Date by one day. |
| Methods inherited from class | Name |
|---|---|
class Object |
addShutdownHook, any, any, asBoolean, asType, collect, collect, collect, dump, each, eachMatch, eachMatch, eachWithIndex, every, every, find, find, findAll, findAll, findIndexOf, findIndexOf, findIndexValues, findIndexValues, findLastIndexOf, findLastIndexOf, findResult, findResult, findResult, findResult, getAt, getMetaClass, getMetaPropertyValues, getProperties, grep, grep, hasProperty, identity, inject, inject, inspect, invokeMethod, is, isCase, isNotCase, iterator, metaClass, print, print, printf, printf, println, println, println, putAt, respondsTo, respondsTo, setMetaClass, sleep, sleep, split, sprintf, sprintf, stream, tap, toString, use, use, use, with, with, withCloseable, withCloseable, withMethodClosure, withStream, withStream, withTraits |
Clears the time portion of this java.sql.Date instance; useful utility where it makes sense to compare month/day/year only portions of a Date.
Subtract a number of days from this date and returns the new date.
days - the number of days to subtractIncrement a java.sql.Date by one day.
Add a number of days to this date and returns the new date.
days - the number of days to increaseDecrement a java.sql.Date by one day.