DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   ASP (http://www.daniweb.com/forums/forum62.html)
-   -   how do i get the current time when i click a button? (http://www.daniweb.com/forums/thread31122.html)

ohgosh Aug 25th, 2005 5:22 am
how do i get the current time when i click a button?
 
how do i get the current date/time when i click a button? i manage to retrieve the value of current date/time in 2 separate hidden fields when the page loads.. but i want to retrieve the actual date/time only when i click the button. is it possible? i think it is, but how? after that, i want to store into the database.

thanks.

william_stam Aug 25th, 2005 9:15 am
Re: how do i get the current time when i click a button?
 
use javascript or on button clicked refresh page. i would suggest the javascript route.

ohgosh Aug 25th, 2005 8:31 pm
Re: how do i get the current time when i click a button?
 
do u have any link for those javascript?

ohgosh Aug 29th, 2005 9:17 pm
Re: how do i get the current time when i click a button?
 
:cool: thanks for the help.. i mng to get the current time.. n here, im going to share with u guys..

my solution is neither using javascript nor refresh page.. it is that:

i get the current time only when i want to insert record into the db. :p
hence, i call time() when i insert the values for the timeSent column.


All times are GMT -4. The time now is 9:57 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC