•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 374,444 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,819 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 4464 | Replies: 3
![]() |
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.
thanks.
cheers,
ohgosh
ohgosh
•
•
Join Date: Mar 2005
Location: LTT, South Africa
Posts: 125
Reputation:
Rep Power: 4
Solved Threads: 0
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.
cheers,
ohgosh
ohgosh
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb ASP Marketplace
- Button click event only working the second time (C#)
- how to get to next record on click of a button. (JavaScript / DHTML / AJAX)
- how to get to next record on click of a button (JSP)
- to get current time in mobile.. (Java)
- add one hour to current time (JavaScript / DHTML / AJAX)
- get current time (Java)
- c++ learning advice (C++)
Other Threads in the ASP Forum
- Previous Thread: uploading to web space
- Next Thread: how do i get more than one checkbox being checked


Linear Mode