html how to get todays date code example Example: return current date in javascript let today = new Date().toLocaleDateString() console.log(today)