CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 CCS/ASP /MSACCESS + Convert To Military Time

Print topic Send  topic

Author Message
Pariah43
Posted: 09/17/2003, 1:29 PM

I was wondering if anyone here had either a javascript routine or a way to convert to "short notation" military time.. and not the 12-hour format that is standard in MSACCESS and CCS? I'd like to be able to have the users input "0100" for 1:00:00 PM, and return the same formatting on a pageview rather than the "01:00" that the products require.

TIA
Alice
Posted: 09/17/2003, 3:51 PM

Umm... "0100" is 1:00:00 AM not PM?
That'd be "1300" for the PM n'est-ce pas?

There's no vbscript (ASP) function for miltime in my ref books, so you'll have to write your own function. Check out Hour, Minute, Second TimeSerial and Replace fumctions and you'll get there.
Santa Clause
Posted: 09/17/2003, 5:30 PM

<:)

well then,
an early Christmas gift

Here's some js code for all coders

http://codedata.box.sk/js/script1204.txt.html

from the elves

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.