G3pix AxonASP - Standard VBScript Functions Test

Tests date/time, string, math, type conversion and formatting functions.

Data/Hora

Now: 27/10/2026 22:03:25
Date: 27/10/2026
Time: 22:03:25
Year: 0
Month: 0
Day: 0
Hour: 0
Minute: 0
Second: 0
Weekday: 1
WeekdayName: domingo
MonthName: janeiro
Timer: 79405.432442635
DateValue('01/01/2025'): 01/01/2025
TimeValue('12:30:45'): 12:30:45
DateAdd('d', 5, '01/01/2025'): 06/01/2025
DateDiff('d', '01/01/2025', '01/31/2025'): 30
DatePart('m', '03/15/2025'): 3
DateSerial(2025, 6, 15): 15/06/2025
TimeSerial(14, 30, 45): 14:30:45

String

Len('Hello'): 5
Left('Hello', 2): He
Right('Hello', 2): lo
Mid('Hello', 2, 3): ell
InStr('Hello World', 'World'): 7
InStrRev('Hello World', 'o'): 8
Replace('Hello', 'l', 'x'): Hexxo
Trim(' Hello '): [Hello]
LTrim(' Hello'): [Hello]
RTrim('Hello '): [Hello]
LCase('HELLO'): hello
UCase('hello'): HELLO
Space(5): [ ]
String(3, 'a'): aaa
StrReverse('Hello'): olleH
StrComp('abc', 'abc'): 0

Matemática

Abs(-5): 5
Sqr(9): 3
Rnd: 0.3044967320123545
Round(3.7): 4
Int(3.7): 3
Sin(0): 0
Cos(0): 1
Tan(0): 0
Atn(1): 0.7853981633974483
Log(2.718): 0.999896315728952
Exp(1): 2.718281828459045
Sgn(-5): -1
Sgn(0): 0
Sgn(5): 1
Fix(-3.7): -3

Conversão

CInt('42'): 42
CDbl('3.14'): 3.14
CStr(42): 42
CBool(1): True
CDate('01/01/2025'): 01/01/2025
Asc('A'): 65
Chr(65): A
Hex(255): FF
Oct(8): 10
CByte(200): 200
CCur(100.5): 100.5
CLng(42): 42
CSng(3.14): 3.140000104904175

Formatação

FormatCurrency(1234.5): R$ 1.234,50
FormatNumber(1234.5678, 2): 1.234,57
FormatPercent(0.25, 1): 25,0%

Array

Array created
UBound(arr): 2
LBound(arr): 0
IsArray(arr): True
Join(arr, ', '): apple, banana, cherry
Split('apple,banana,cherry', ','): count=3

Testes de Funções Completados!