VBScript to demonstrate the use of format functions
kw.vbs
Output
Returns an expression formatted as a number: 500,000.00 Returns an expression formatted as a number: 500,000.0000000000 Returns an expression formatted as a number: 5,000,000.00 Returns an expression formatted as a percentage: 10.0% Returns an expression formatted as a percentage: 10.00% Returns an expression formatted as a currency value: ($5000.00) Returns Date in Default System Date Format: 4/13/2017 6:56:18 PM Returns Weekday, Monthname, Year: Thursday, April 13, 2017 Returns mm/dd/yy: 4/13/2017 Returns hh:mm:ss PM/AM: 6:56:18 PM Returns hh:mm: 18:56
What Next?
VBScript to demonstrate the use of math functions
VBScript to demonstrate the use of date and time functions
VBScript to perform ArrayList operations
Advertisement