What is the html code for a default date?

January 25th, 2010 | by admin |

I know that asp is response.write but what is simple html code to insert the default date, say into a text field on a form?

HTML is static. You cannot have it insert dynamic content (ie: the current date). You’d need to use a server-side language like ASP or PHP or something on the client-side like JavaScript.

Technorati Tags: , , , , , , ,

Tags: asp, Current Date, Dynamic Content, html code, Html Date, Response Write, Server Side Language, Text Html

2 Responses to “What is the html code for a default date?”

  1. By Chris G on Jan 25, 2010

    HTML is static. You cannot have it insert dynamic content (ie: the current date). You’d need to use a server-side language like ASP or PHP or something on the client-side like JavaScript.
    References :

  2. By Brandon L on Jan 25, 2010

    You can’t use just HTML to serve up dynamic content. You have to use some sort of scripting language like JavaScript. I could paste all the code here but this blog post has all the info you need. It is pretty easy.
    References :
    http://www.howtocreateawebpageblog.com/javascript-tips/inserting-todays-date-into-html

Post a Comment