CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Button to add date and time

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.