getDay function

int getDay(
  1. DateTime date
)

Returns the day of the month from the given date.

date: The date for which the day is to be determined.

Returns an integer representing the day of the month.

Implementation

int getDay(
  DateTime date,
) {
  return date.day;
}