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 OverflowMDN 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).
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
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
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
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
Videos
11:59
The Easiest Way to Format Dates in JavaScript - YouTube
16:02
Format Your Own Dates With JavaScript - YouTube
10:51
How to Format Dates with Vanilla JavaScript - YouTube
05:02
How to Get Current Date & Time in JavaScript | Date Object Tutorial ...
07:37
How to Format Dates and Times in Make.com - YouTube
06:14
#22 - Show and format the current date - YouTube
Top answer 1 of 7
721
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?
2 of 7
250
I honestly suggest that you use moment.js. Just download moment.min.js and then use this snippet to get your date in whatever format you want:
<script>
$(document).ready(function() {
// set an element
$("#date").val( moment().format('MMM D, YYYY') );
// set a variable
var today = moment().format('D MMM, YYYY');
});
</script>
Use following chart for date formats:

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);
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.
W3Schools
w3schools.com › jsref › jsref_now.asp
W3Schools.com
The syntax is always Date.now().
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 ...
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