?
Solved

ASP VB Hidden field set date

Posted on 2009-04-02
2
Medium Priority
?
566 Views
Last Modified: 2012-06-27
I have an ASP/VB page. A form that submits a value to next page, the field is a hidden field and should have 'today's date'.
How can I have 'getdate()' value in the field ?
What would the value of the hidden field be ? and if needed a script ?

Thanks.

A
0
Comment
Question by:amucinobluedot
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
Kevin Pham earned 2000 total points
ID: 24052393
Here's a quick one:

<input type=hidden value=<%=date()%>>

Open in new window

0
 
LVL 10

Expert Comment

by:KenAdney
ID: 24052755
or <input type="hidden" name="datecomplete" value='<%= now %>'>
0

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question