Print Page | Close Window

change from text to Time

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=24397
Printed Date: 28 March 2026 at 12:37pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: change from text to Time
Posted By: zMaestro
Subject: change from text to Time
Date Posted: 12 September 2007 at 3:09pm
Hi,
in ASP, how can I change 11.8606 to 11:51 AM?
 
 :)
thanks



Replies:
Posted By: KCWebMonkey
Date Posted: 17 September 2007 at 3:25am
well, if .8606 is the same as 51/60, then i would guess there would have to be a calculation to see what the decimal amount is out of 60?


Posted By: zMaestro
Date Posted: 17 September 2007 at 3:05pm
times=Int(11.8606)&" : "& FormatNumber((((11.8606-Int(11.8606))*60)),0)
something like this worked



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net