I have a client that would like me to display the current day and time on his website. I have added the following code and an able to display the date, but I have no idea how to format the script to also display the current time.
// Gets today's date const today = new Date(); // Sets the property of the text element to be a string representing today's date in the user's local format $w("#text1").text = today.toLocaleDateString();
Here is a link to my test page:
Any assistance is greatly appreciated!