var date = new Date();
date .getYear(); // Get the current year (2 bits)
date .getFullYear(); // Get the full year (4 bits)
date .getMonth(); // Get the current month (0-11,0 for January)
date .getDate(); // Get the current day (1-31)
date .getDay(); // Get the current week X(0-6,0 for Sunday)
date .getTime(); // Get the current time (milliseconds from 1970.1.1)
date .getHours(); // Get the current hour (0-23)
date .getMinutes(); // Get the current minute (0-59)
date .getSeconds(); // Get the current number of seconds (0-59)
date .getMilliseconds(); // Get the current number of milliseconds (0-999)
date .toLocaleDateString(); // Get the current date
var mytime=date .toLocaleTimeString(); // Get the current time
date .toLocaleString( ); // Get the date and time