javascript get date and time for location code example Example: current time in javascript new Date().toLocaleString(); >> "09/08/2014, 2:35:56 AM"