public class DateComponents extends Object implements Serializable
| Constructor and Description |
|---|
DateComponents() |
| Modifier and Type | Method and Description |
|---|---|
int |
getDay()
Retrieves the birth day.
|
int |
getMonth()
Retrieves the birth month
|
int |
getYear()
Retrieves the birth year
|
void |
setDay(int day)
Updates the birth day
|
void |
setMonth(int month)
Updates the birth month
|
void |
setYear(int year)
Updates the birth year
|
String |
toString()
Returns the date in mm/dd/yyyy format
|
public int getDay()
public void setDay(int day)
day - the birth daypublic int getMonth()
public void setMonth(int month)
month - the birth monthpublic int getYear()
public void setYear(int year)
year - the birth yearCopyright © 2018. All Rights Reserved.