I hope this is what you want:

const today = new Date();
const yyyy = today.getFullYear();
let mm = today.getMonth() + 1; // Months start at 0!
let dd = today.getDate();

if (dd < 10) dd = '0' + dd;
if (mm < 10) mm = '0' + mm;

const formattedToday = dd + '/' + mm + '/' + yyyy;

document.getElementById('DATE').value = formattedToday;

How do I get the current date in JavaScript?

Answer from Aelios on Stack Overflow
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › Date
Date - JavaScript | MDN
JavaScript Date objects represent a single moment in time in a platform-independent format. Date objects encapsulate an integral number that represents milliseconds since the midnight at the beginning of January 1, 1970, UTC (the epoch).
🌐
freeCodeCamp
freecodecamp.org › news › javascript-date-now-how-to-get-the-current-date-in-javascript
JavaScript Date Now – How to Get the Current Date in JavaScript
June 15, 2020 - It could be in yy/dd/mm or yyyy-dd-mm format, or something similar. To tackle this problem, it would be better to create a reusable function so that it can be used across multiple projects.
Discussions

Reformat date and time with now()
When I use now() I get the date and time in this format: 2/14/2023 11:05:35 AM To save space, is there a way to reformat the output to: 2/14/23 11:05 AM Many thanks! Gregg More on community.coda.io
🌐 community.coda.io
1
0
November 12, 2022
How to format date like this?
Hello I want to format dates such as follows: Like this: 2022-05-26T00:00:00Z That is (ignore the plus sign) : today’s date + T+ 00:00:00Z (always 00:00:00Z at the end) And another date like this: 2022-05-26T15:00:35.844000Z that is (ignore the plus sign) : today’s date + T + HH:MM:SSSSSS+Z ... More on community.n8n.io
🌐 community.n8n.io
1
0
May 27, 2022
Date Format Today's Date
This feels like something simple that I should be able to figure out, but I’m a little stumped. I just want to display “It is Tuesday, March 15th” at the top of the user’s home page, but can’t figure out how to format the Now() value with a formula. Anyone have the answer? More on community.weweb.io
🌐 community.weweb.io
1
1
March 15, 2022
How to get current date?
I need to get current date and add to column in a Google Spreadsheet. I dont receive the time and date info I need make to get it from the time it process the data. How can I get the current time and date and insert that info on Google Spreasheet column? More on community.make.com
🌐 community.make.com
1
0
October 9, 2023
🌐
GeeksforGeeks
geeksforgeeks.org › javascript › javascript-date-now-method
JavaScript Date now() Method - GeeksforGeeks
July 11, 2025 - The Date.now() method in JavaScript returns the current timestamp in milliseconds since January 1, 1970.
🌐
Microsoft Learn
learn.microsoft.com › en-us › dotnet › standard › base-types › custom-date-and-time-format-strings
Custom date and time format strings - .NET | Microsoft Learn
Custom date and time format strings can be used with both DateTime and DateTimeOffset values. In formatting operations, custom date and time format strings can be used either with the ToString method of a date and time instance or with a method that supports composite formatting.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › Date › now
Date.now() - JavaScript | MDN
// This example takes 2 seconds to run const start = Date.now(); console.log("starting timer..."); // Expected output: "starting timer..." setTimeout(() => { const ms = Date.now() - start; console.log(`seconds elapsed = ${Math.floor(ms / 1000)}`); // Expected output: "seconds elapsed = 2" }, 2000);
Find elsewhere
🌐
IBM
ibm.com › docs › en › cobol-zos › 6.3.0
FORMATTED-CURRENT-DATE
The FORMATTED-CURRENT-DATE function returns a character string that represents the current date and time provided by the system on which the function is evaluated. The content of the returned value is formatted according to the format in the argument.
🌐
Bugfender
bugfender.com › blog › javascript-date-and-time
The Definitive Guide to JavaScript Date and Time | Bugfender
February 18, 2025 - timeago.js: timeago.js is a lightweight(~2KBs) nano library used to format date and time with *** time ago statement (e.g.: ‘2 hours ago’). It has support for React, Python, and plain JavaScript. ... Are you also working with Swift? Improve your iOS development skills by reading our detailed guide on Date Manipulation in Swift, tailored for advanced developers. Mastering Swift Date Operations: A Comprehensive Guide for iOS Developers · You must have realized by now that the JavaScript Date object is vast.
🌐
Inch Calculator
inchcalculator.com › home › time & date › knowledge base › what is today’s date?
What Is Today's Date? - Inch Calculator
November 1, 2023 - ... The most common format used in the United States is the MM-DD-YYYY (or MM/DD/YYYY) format, or month-day-year in numbers, while the rest of the world commonly uses the DD-MM-YYYY (or DD/MM/YYYY) format.[1]
🌐
Python documentation
docs.python.org › 3 › library › datetime.html
datetime — Basic date and time types
Return the current local date and time, with tzinfo None. ... See also now(), fromtimestamp().
🌐
JavaScript.info
javascript.info › tutorial › the javascript language › data types
Date and time
The method Date.parse(str) can read a date from a string. The string format should be: YYYY-MM-DDTHH:mm:ss.sssZ, where:
🌐
PHP
php.net › manual › en › function.date.php
PHP: date - Manual
update page now · date_add » · « checkdate · Preface · Function Reference · Date and Time Related Extensions · Date/Time · Date/Time Functions · (PHP 4, PHP 5, PHP 7, PHP 8) date — Format a Unix timestamp · date(string $format, ?int $timestamp = null): string ·
🌐
MySQL
dev.mysql.com › doc › en › date-and-time-functions.html
14.7 Date and Time Functions
Returns the current date and time as a value in 'YYYY-MM-DD hh:mm:ss' or YYYYMMDDhhmmss format, depending on whether the function is used in string or numeric context. The value is expressed in the session time zone. If the fsp argument is given to specify a fractional seconds precision from ...
🌐
WeWeb Community
community.weweb.io › ask us anything
Date Format Today's Date - Ask us anything - WeWeb Community
March 15, 2022 - This feels like something simple that I should be able to figure out, but I’m a little stumped. I just want to display “It is Tuesday, March 15th” at the top of the user’s home page, but can’t figure out how to format the Now() value with a formula. Anyone have the answer?
🌐
UiPath Community
forum.uipath.com › help › studiox
How to add current date and time with a specific format - StudioX - UiPath Community Forum
August 22, 2023 - Hello community I’m new at using Studio X and I’m trying to use the option of sending an email with outlook capturing the current date the Subject line and current time in the body. The date has be in “mm/dd/yyyy” format and time has ...
🌐
Make
help.make.com › date-and-time-functions
Date and time functions - Help Center
e g in a search module) spanning the whole previous month as a closed interval (the interval that includes both its limit points), it is necessary to calculate the last day of the month 2019 09 01 ≤ d ≤ 2019 09 30 {{adddays(setdate(now; 1); 1)}} in some cases, it is necessary to calculate not only the last day of month, but its last millisecond 2019 09 01t00 00 00 000z ≤ d ≤ 2019 09 30t23 59 59 999z {{parsedate(parsedate(formatdate(now; "yyyymm01"); "yyyymmdd"; "utc") 1; "x")}} if the result should respect your timezone settings, simply omit the utc argument {{parsedate(parsedate(forma