Forums

This topic is locked

Autogenerating current date in editable field

Posted 28 Feb 2003 00:00:56
1
has voted
28 Feb 2003 00:00:56 jack nimble posted:
How can I have the current date inserted into a un-hidden form field?

Replies

Replied 28 Feb 2003 01:30:12
28 Feb 2003 01:30:12 Owen Eastwick replied:
In ASP/VBScript: <input type="text" name="txtFieldName" value="<%= Date() %>">

Regards

Owen.

-------------------------------------------------------------------------------------------
Used programming books and web development software for sale (UK only): www.tdsf.co.uk/tdsfdemo/Shop.htm

Developer services and tutorials: www.drdev.net

Multiple Parameter UD4 / Access 2000 Search Tutorial: www.tdsf.co.uk/tdsfdemo/
Replied 28 Feb 2003 02:57:41
28 Feb 2003 02:57:41 jack nimble replied:
Thanks!

That worked surprisingly well.

Is there a way to format the date text which is currently "mm/dd/year" to something like "mm-dd-year"?

Again, thank you.
Replied 28 Feb 2003 03:16:17
28 Feb 2003 03:16:17 Owen Eastwick replied:
Have a read: http://www.drdev.net/article05.asp

Regards

Owen.

-------------------------------------------------------------------------------------------
Used programming books and web development software for sale (UK only): www.tdsf.co.uk/tdsfdemo/Shop.htm

Developer services and tutorials: www.drdev.net

Multiple Parameter UD4 / Access 2000 Search Tutorial: www.tdsf.co.uk/tdsfdemo/

Reply to this topic