GLib.Date.valid_day

function valid_day(day: GLib.DateDay): Boolean {
    // Gjs wrapper for g_date_valid_day()
}
  

Returns true if the day of the month is valid (a day is valid if it's between 1 and 31 inclusive).

day

day to check

Returns

true if the day is valid