getDay

fun getDay(): Int(source)

Gets the day of the week, using local time.

MDN Reference