How to dynamically get Date & Time

Addz

New Member
Any one know how to dynamically get the date and time in a VB code behind page?<BR><BR>I need to populate a field with the time of submission and another field with the date of submission.<BR>I can use response.write to see the function DateString and TimeOfDate but it won't dynamically populate my SQL statement.<BR><BR>I tried the following in my Code Behind with Inherits Page under the delcaration of my Class.<BR>"INSERT INTO Table (DBTime,DBDate) VALUES (TimeOfDate,DateString)"<BR><BR>I even tried to declare some variables As Date, populate them, and that didn't help.can't you just use now() and format it out for either time or date?
 
Back
Top