artsapimp
Aug 17th, 2000, 02:17 PM
I know this is easy but it's really driving me crazy.
I am trying to log the time and date a form is being submitted into a database along with all of the information on the form. I don't want the person filling out the form to be able to change the time and date which is why I have it done like this...
...
<td>Opened Date </td>
<td><%= Date%></td>
</tr>
<tr>
<td>Opened Time </td>
<td><%= Time%></td>
</tr>
...
This part is working fine. But when I'm trying to save it to a database it's not saving the time, but is saving the date. Here is my code I'm using for that.
...
rst("OpenedDate") = Date
rst("OpnedTime") = Time
...
I know it's not pulling that from the form but if it's a minute or two off it won't really matter. The date is populating but the time isn't.
Please help. Thanks
I am trying to log the time and date a form is being submitted into a database along with all of the information on the form. I don't want the person filling out the form to be able to change the time and date which is why I have it done like this...
...
<td>Opened Date </td>
<td><%= Date%></td>
</tr>
<tr>
<td>Opened Time </td>
<td><%= Time%></td>
</tr>
...
This part is working fine. But when I'm trying to save it to a database it's not saving the time, but is saving the date. Here is my code I'm using for that.
...
rst("OpenedDate") = Date
rst("OpnedTime") = Time
...
I know it's not pulling that from the form but if it's a minute or two off it won't really matter. The date is populating but the time isn't.
Please help. Thanks