getHours Summary Returns the hour of the System.Date object according to local time. Usage public int getHours() Returns The hour of the System.Date object according to local time. Description Returns the hour of the System.Date object according to local time. Examples Basic Usage 1234import System; Date d = new Date(2011, Date.Month.FEB, 10, 5);Console.log(d.getHours()); // 5 Share HTML | BBCode | Direct Link