get current dat in js code example Example: return current date in javascript let today = new Date().toLocaleDateString() console.log(today)