arthurdent
Posts: 9
|
| Posted: 06/19/2007, 10:15 PM |
|
Hi!
Could someone help me!
I would like to add current date and time with button.
In record form, I have textbox and button with code and it will show the date and time, but right after it shows the date and time, the textbox will show the earlier time or it will be cleared.
I used the following code to button:
d = new Date();
document.NewRecord1.TextArea1.value = document.NewRecord1.TextArea1.value +
d.getDate() + "/" + d.getMonth() + "/" + d.getYear() + " - " + d.getHours() + ":"+ d.getMinutes() + ":"+ d.getSeconds();
I want that this "Time"-button just gives the date and time to textbox and when all textboxes have filled then the ADD-button will move the fields to SQL.
AD
|
 |
 |
arthurdent
Posts: 9
|
| Posted: 06/25/2007, 2:23 AM |
|
Hi again!
Could some one give little help with my problem.
What and how is the best way to do following. I have asp pages and SQL server.
I would like to have Start and Stop buttons on my form and when user hits the start button, then I'll get the start time to Textbox (Start). When the user hits Stop button, then I'll get the stop time to Textbox. These times i'll move to Sql.
AD
|
 |
 |
|