If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Date

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-24-05, 14:40
JJ7AS JJ7AS is offline
Registered User
 
Join Date: Jan 2005
Posts: 9
Date

Hi guys, does anyone know how to put the 'date()' function into a text box.
Reply With Quote
  #2 (permalink)  
Old 02-25-05, 10:49
DMWCincy DMWCincy is offline
Registered User
 
Join Date: May 2004
Posts: 125
<html>
<body>
<input type="text" name="txtMyControl" value="<%=MyVariableHere%>">
or
<input type="text" name="txtMyControl" value="<%=date()%>">
</body>
</html>
Reply With Quote
  #3 (permalink)  
Old 03-02-05, 19:43
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
And of course you could use the Date() function in conjunction with the FormatDateTime() function.

And for more about any and all functions:

Visual Basic Scripting Edition Functions
http://msdn.microsoft.com/library/de...ifunctions.asp
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On