Displaying date in HTML page
Solved
guenievr
Posted messages
52
Status
Membre
-
guenievr Posted messages 52 Status Membre -
guenievr Posted messages 52 Status Membre -
Hello,
I'm trying to insert today's date into an HTML page. Everything that has been suggested to me in forums doesn't work. But it must certainly depend on me, as I'm a beginner in HTML.
How can I insert today's date into an HTML page using NVU?
Thank you for any response
Sincerely
I'm trying to insert today's date into an HTML page. Everything that has been suggested to me in forums doesn't work. But it must certainly depend on me, as I'm a beginner in HTML.
How can I insert today's date into an HTML page using NVU?
Thank you for any response
Sincerely
Configuration: Windows XP Internet Explorer 7.0
5 réponses
Hello,
In HTML, this is not possible.
You have to use scripts.
In Javascript, in PHP…
For example :
How do you do it?
--
In HTML, this is not possible.
You have to use scripts.
In Javascript, in PHP…
For example :
<script type="text/javascript"> d = new Date(); document.write("<p>Today is: <span style='color:#8aa;'>"); document.write(d.toLocaleDateString()); document.write("</span></p>"); </script> How do you do it?
--