day() returns the day.
month() returns the month.
year() returns the year.
Sample Code:
Date datobj = Date.today();
Integer dy = datobj.day();
Integer mon = datobj.month();
Integer yr = datobj.year();
day() returns the day.
month() returns the month.
year() returns the year.
Sample Code:
Date datobj = Date.today();
Integer dy = datobj.day();
Integer mon = datobj.month();
Integer yr = datobj.year();