CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Date and Time Stamp

Print topic Send  topic

Author Message
Kevin
Posted: 09/24/2004, 8:59 AM

Hello,

I have a notes box that I would like to add a button next to that
automatically adds a date and time stamp to precede the note. This is the
format of the notes currently.

----------------------------------------------------------
09/01/03 11:12am
Talked to Client

09/02/03 09:22am
Heard back from client.
She said the problem was solved

10/01/04 04:33pm
Left message for client
----------------------------------------------------------


Is there a way to create a button that when clicked will automatically add
the current date/ time to the bottom of the note so I can just start typing?

Thanks for your help!

Kevin R.



Nicole

Posts: 586
Posted: 09/27/2004, 6:30 AM

Kevin,
Put a button to a page and create client side onClick event for it. Use JavaScript code like provided below in the event. Remember that you need to use real form and textarea names and of course you can use another date format:
  
d = new Date();  
document.NewRecord1.TextArea1.value = document.NewRecord1.TextArea1.value  +   
d.getDate() + "/" + d.getMonth() + "/" + d.getYear() + " - " + d.getHours() + ":"+ d.getMinutes() + ":"+ d.getSeconds();  

_________________
Regards,
Nicole
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.

Web Database

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.