public
final
class
Date
implements
Comparable<Date>
,
Serializable
Represents a Date without time, such as 2017-03-17. Date is timezone independent.
Static Methods
fromJavaUtilDate(Date date)
public
static
Date
fromJavaUtilDate
(
Date
date
)
Convert a Java Util Date to a Google Date.
fromYearMonthDay(int year, int month, int dayOfMonth)
public
static
Date
fromYearMonthDay
(
int
year
,
int
month
,
int
dayOfMonth
)
Constructs a new Date instance.
parseDate(String date)
public
static
Date
parseDate
(
String
date
)
toJavaUtilDate(Date date)
public
static
Date
toJavaUtilDate
(
Date
date
)
Convert a Google Date to a Java Util Date.
Methods
compareTo(Date other)
public
int
compareTo
(
Date
other
)
equals(Object o)
public
boolean
equals
(
Object
o
)
getDayOfMonth()
public
int
getDayOfMonth
()
Returns day of month between 1 and 31 inclusive.
getMonth()
public
int
getMonth
()
Returns the month between 1 and 12 inclusive.
getYear()
public
int
getYear
()
Returns the year.
hashCode()
public
int
hashCode
()
toString()
public
String
toString
()

