how to get the current day in javascript code example Example: get today's date javascript var today = new Date();