getDay Summary Returns the day of the week of the System.Date object according to local time. In order to maintain compatibility with ECMAScript, this method does not return a System.Date.Weekday enumeration value. A cast isavailable from the return value of getDay() to the`System. Usage public int getDay() Returns The day of the week of the System.Date object according to local time. Description Returns the day of the week of the System.Date object according to local time. In order to maintain compatibility with ECMAScript, this method does not return a System.Date.Weekday enumeration value. A cast is available from the return value of getDay() to the System.Date.Weekday enumeration. Examples Basic Usage 1234import System; Date d = new Date(2011, Date.Month.FEB, 10);Console.log(d.getDay()); // 4 Casting to System.Date.Weekday 12345import System; Date d = new Date(2011, Date.Month.FEB, 10);Date.Weekday wd = (Date.Weekday) d.getDay();Console.log(wd == Date.Weekday.THURS); // true Share HTML | BBCode | Direct Link