Page 1 of 1

How to display current date using javascript in a textbox?

Posted: Thu Nov 06, 2014 12:51 am
by Darrel
How to display current date using javascript in a textbox(xhtml)?

I have to create a text box in xhtml which displays the current date. The current date is produced by using javascript.
How do i do that? Do i create a function and call it? or do I do something else.
Thank You.

Re: How to display current date using javascript in a textbo

Posted: Thu Nov 06, 2014 6:25 am
by Celauran
Use the Date Object