DateOnly Class
- java.
lang. Object - com.
microsoft. graph. core. DateOnly
- com.
public class DateOnly
A timezone-nonspecific date
Constructor Summary
| Constructor | Description |
|---|---|
| DateOnly(int year, int month, int day) |
Constructs a timezone-nonspecific Date |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| int |
getDay()
Gets the day |
| int |
getMonth()
Gets the month |
| int |
getYear()
Gets the year |
|
static
Date |
parse(String dateStr)
Constructs a timezone-nonspecific Date |
| java.lang.String | toString() |
Methods inherited from java.lang.Object
Constructor Details
DateOnly
public DateOnly(int year, int month, int day)
Constructs a timezone-nonspecific DateOnly
Parameters:
Method Details
getDay
public int getDay()
Gets the day
Returns:
getMonth
public int getMonth()
Gets the month
Returns:
getYear
public int getYear()
Gets the year
Returns:
parse
public static DateOnly parse(String dateStr)
Constructs a timezone-nonspecific DateOnly
Parameters:
yyyy-mm-dd
Returns:
Throws:
toString
public String toString()
Overrides:
DateOnly.toString()