Print Page | Close Window

formatting numbers, dates etc

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=9347
Printed Date: 01 April 2026 at 1:00am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: formatting numbers, dates etc
Posted By: Semikolon
Subject: formatting numbers, dates etc
Date Posted: 29 January 2004 at 7:29am

yo..

to format a date its just to do it something like this FormatDateTime(date),1 and ill get a good looking date

 

but how the hell can i do something similar with a number so i get it as kb, mb or gb?

i searched the whole(almost) visual studio.net help files but couldnt find sh*t..




Replies:
Posted By: ljamal
Date Posted: 29 January 2004 at 9:57am
FormatNumber

-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming


Posted By: Semikolon
Date Posted: 29 January 2004 at 10:23am

but this isnt dedicated to size formatting.. but hell.. its good enough..

 

thanks ljamal



Posted By: ljamal
Date Posted: 29 January 2004 at 11:12am
All files give you information in bytes so you divide by 1024 for KB, 1024x1024 for MB and 1024x1024x1024 for GB and use formatNumber to make it pretty.

-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming



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