Metalshell Coding Forums • View topic - Javascript Display Current Time
 
It is currently Fri Jul 30, 2010 8:50 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Javascript Display Current Time
PostPosted: Sat Oct 25, 2008 9:14 pm 
Offline

Joined: Sat Oct 25, 2008 6:01 pm
Posts: 131
This is an automated topic to discuss http://www.metalshell.com/source_code/85/Javascript_Display_Current_Time.html. Please keep all replies related to this code example.


Top
 Profile  
 
 Post subject: Re: Javascript Display Current Time
PostPosted: Wed Dec 03, 2008 5:46 pm 
Offline

Joined: Wed Dec 03, 2008 5:26 pm
Posts: 1
Thank you.

I had to make one minor change. To get the correct display of AM/PM, I added a variable to hold the original hour value, and use it as the test for AM/PM. Otherwise times between 12:00 AM and 12:59 AM, as well as, 12:00 PM and 12:59 PM will display as AM.

I found a good date format function here:
http://www.codeproject.com/KB/scripting/dateformat.aspx


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google Feedfetcher and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO