Solved

ASP VB Hidden field set date

Posted on 2009-04-02
2
557 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
2 Comments
 
LVL 3

Accepted Solution

by:
Kevin Pham earned 500 total points
Comment Utility
Here's a quick one:

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

Open in new window

0
 
LVL 10

Expert Comment

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

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The viewer will learn how to dynamically set the form action using jQuery.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now