Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

Adding server date to a form

Posted 14 Dec 2004 00:43:49
1
has voted
14 Dec 2004 00:43:49 Jeff Baranda posted:
Hello,

How does one add the server (current) date to a form field?
I am working on a Request Form that has a request date field that I would like to auto-fill with the current date instead of a user typing it in.

Is there server variable (IIS) for the system date that I can use, if so, what is the variable name?

Thanks in advance

Replies

Replied 14 Dec 2004 18:24:03
14 Dec 2004 18:24:03 Dave Thomas replied:
<pre id=code><font face=courier size=2 id=code>
.... name="dateBox" value="&lt;%= Now %&gt;"
</font id=code></pre id=code>

ive never had to do this tbh, so dont hunt me down if it doesnt work <img src=../images/dmxzone/forum/icon_smile_tongue.gif border=0 align=middle>

but basically if you add the value tag with a script delimiter in it (above is an ASP example) then something along them lines will work.



Regards,
Dave

[DWMX 2004]|[FlashMX 2004 Pro]|[SQL]|[Access2000]|[ASP/VBScript]|[XP-Pro]

Reply to this topic