get today full date javascript code example Example: get today's date javascript var today = new Date();