javascript gett clock time code example Example: current time in javascript new Date().toLocaleString(); >> "09/08/2014, 2:35:56 AM"