How to embed Date and time in a web page? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to embed Date and time in a web page?

I want to include a line wher I want to show date and time or only date in my web page. How to do that?

28th Mar 2017, 3:41 AM
Prasannakumar naik
Prasannakumar naik - avatar
3 Answers
+ 3
you need to use a programming or scripting language like JavaScript, java (jsp) or php. printing the current date and time on a web page is really simple with them. I recommend JavaScript although it uses the user's date/time, because it's easy to learn and easy to try/test.
28th Mar 2017, 4:24 AM
Mario L.
Mario L. - avatar
+ 3
took a look at my profile I wrote a code for this
28th Mar 2017, 5:07 AM
chris
chris - avatar
0
u can use simple JavaScript to show the date below is simple Code to display date and time. https://code.sololearn.com/W701FPhpYF0e/?ref=app
28th Mar 2017, 4:48 AM
Eranga
Eranga - avatar