The getday() method of date object returns day of the week for specified date. Use it for example to get weekday number.
Syntax