Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Format Time in the OnClick Event

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,
I have a radio button with an adjacent input field. Now when I click on the radio button i want the input field to fill the input field automatically. I am using the following syntax:
OnClick="frmName.inputfldname.value=time". Now this fills the input box with current time but I want the time to be in the 24 hour clock format. How can I accomplish this?
Thanks
Vibhu
 
FormatDateTime(time, 4)

4 being the constant to declare that you want time in the 24 hour format.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top