Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Format Time in the OnClick Event

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,203
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Format Time in the OnClick Event
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Format Time in the OnClick Event - 6/22/2001 11:54:10 PM   
  mstargas

 

Posts: 6
Score: 0
Joined: 5/23/2001
From: USA
Status: offline
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
 
 
Post #: 1
 
 Re: Format Time in the OnClick Event - 6/22/2001 11:58:32 PM   
  Mighty

 

Posts: 11
Score: 0
Joined: 5/22/2001
From: USA
Status: offline
FormatDateTime(time, 4)

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

(in reply to mstargas)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Format Time in the OnClick Event Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts