🚀 ASP.py Version 21.0 - Exhaustive Feature Test
📅 Date/Time Functions & Literals
Current Date/Time (Now): 2/15/2026 5:08:45 PM
Current Date Only (Date): 2/15/2026
Current Time Only (Time): 5:08:45 PM
Date Literal Test: 2/14/2026
Date Literal Type: True
FormatDateTime Tests
| Format Type |
Constant |
Result |
| General Date |
vbGeneralDate (0) |
2/15/2026 5:08:45 PM |
| Long Date |
vbLongDate (1) |
Sunday, February 15, 2026 |
| Short Date |
vbShortDate (2) |
2/15/2026 |
| Long Time |
vbLongTime (3) |
5:08:45 PM |
| Short Time |
vbShortTime (4) |
17:08 |
Date Component Extraction
Year: 2026
Month: 2
Day: 15
Hour: 17
Minute: 8
Second: 45
Month and Weekday Names
| Month # |
Full Name |
Abbreviated |
| 1 |
January |
Jan |
| 2 |
February |
Feb |
| 3 |
March |
Mar |
| 4 |
April |
Apr |
| 5 |
May |
May |
| 6 |
June |
Jun |
| 7 |
July |
Jul |
| 8 |
August |
Aug |
| 9 |
September |
Sep |
| 10 |
October |
Oct |
| 11 |
November |
Nov |
| 12 |
December |
Dec |
| Weekday # |
Full Name |
Abbreviated |
| 1 |
Sunday |
Sun |
| 2 |
Monday |
Mon |
| 3 |
Tuesday |
Tue |
| 4 |
Wednesday |
Wed |
| 5 |
Thursday |
Thu |
| 6 |
Friday |
Fri |
| 7 |
Saturday |
Sat |
🔄 Type Conversion Functions
| Function |
Input |
Output |
Type Check |
| CByte |
"123" |
123 |
True |
| CInt |
"456.7" |
457 |
True |
| CLng |
"789.2" |
789 |
True |
| CSng |
"123.456" |
123.456 |
True |
| CDbl |
"789.123456" |
789.123456 |
True |
| CCur |
"1234.5678" |
1234.5678 |
True |
| CStr |
12345 |
12345 |
String |
| CDate |
"2/14/2026" |
2/14/2026 |
True |
| CBool (True) |
"True" |
True |
Boolean |
| CBool (False) |
0 |
False |
Boolean |
✅ Is-Functions (Type Checking)
| Variable |
IsDate |
IsEmpty |
IsNull |
IsNumeric |
IsObject |
| myArray (list) |
False |
True |
False |
True |
False |
| myDict (Dictionary) |
False |
False |
False |
False |
False |
True |
| myString ("Hello") |
False |
False |
False |
False |
False |
False |
| myNumber (42) |
False |
False |
False |
False |
True |
False |
| myEmpty (Empty) |
False |
False |
True |
False |
True |
False |
| myNull (Null) |
False |
False |
False |
True |
False |
False |
| myDateVal (Now) |
False |
True |
False |
False |
False |
False |
| Date String |
False |
True |
False |
False |
False |
False |
🔀 Control Structures
If/ElseIf/Else Statement
Score: 85
Grade:
B
Select Case Statement
Day Number: 5
Day Name:
Friday
For Loop
Counting 1 to 10:
1 2 3 4 5 6 7 8 9 10
Counting by 2s (1 to 20):
1 3 5 7 9 11 13 15 17 19
While Loop
Countdown from 5:
5... 4... 3... 2... 1... Blast off! 🚀
📝 String Operations
String Concatenation:
First Name: John
Last Name: Doe
Full Name: John Doe
Message: Hello, John Doe! You are 30 years old.
Multiple Concatenations:
ASP.py Version 21.0 - Released 2026
📚 Scripting.Dictionary Object
Dictionary Contents:
Name: Alice
Age: 25
City: New York
Occupation: Developer
Count: 4
Exists Test:
Does "Name" exist? True
Does "Country" exist? False
After modifying Age to 26:
Age: 26
After removing Occupation:
Count: 3
Occupation exists? False
👤 Session Object
Session Information:
Session ID: 259134030
Username: TestUser123
Login Time: 2/15/2026 5:08:45 PM
Page Views: 1
Timeout: 20 minutes
🌐 Application Object
Application Variables:
Application Name: ASP.py Test Suite
Total Visits: 1
App Start Time: 2/15/2026 5:08:45 PM
📨 Request Object
Form Test:
🖥️ Server Object
HTMLEncode:
Original:
Encoded: <script>alert('XSS');</script>
URLEncode:
Original: "Hello World & More!"
Encoded: Hello+World+%26+More%21
MapPath:
Virtual Path: /test.asp
Physical Path: C:\asp.py\test.asp
ScriptTimeout:
Current Timeout: 90 seconds
📤 Response Object
Response.Write Test:
This is written using Response.Write()
You can write multiple lines
And combine strings together!
⚖️ Operators & Comparisons
| Operation |
Expression |
Result |
| Equality (=) |
a = b |
False |
| Inequality (<>) |
a <> b |
True |
| Less Than (<) |
a < b |
True |
| Greater Than (>) |
a > b |
False |
| Less or Equal (<=) |
a <= b |
True |
| Greater or Equal (>=) |
a >= b |
False |
Logical Operators
| Operation |
Expression |
Result |
| AND |
(True And True) |
True |
| OR |
(False Or True) |
True |
| NOT |
Not False |
True |
💬 Comments
Comments work with apostrophe (') syntax
Both inline and separate line comments are supported
🎯 Special Values
🗓️ Complex Date Scenarios
Holiday Dates:
Christmas: Thursday, December 25, 2025
New Year: Thursday, January 1, 2026
Birthday: 2/14/2026 3:30:00 PM
Meeting: 2/14/2026 9:00:00 AM
Date Comparisons:
Is Birthday after Christmas? True
Is New Year before Birthday? True
Meeting hour: 9:00
Birthday month: February
Date Arithmetic Context:
Today is: Sunday, February 15, 2026
Current year: 2026
Current month: February
Day of month: 15
✅ Test Summary
All Features Tested:
✓ Date/Time Functions (FormatDateTime, Year, Month, Day, Hour, Minute, Second)
✓ Date Literals (#2/14/2026#)
✓ Date Keywords (Now, Date, Time)
✓ MonthName & WeekdayName
✓ Type Conversion (CByte, CInt, CLng, CSng, CDbl, CCur, CStr, CDate, CBool)
✓ Is-Functions (IsArray, IsDate, IsEmpty, IsNull, IsNumeric, IsObject, IsNothing)
✓ Control Structures (If/ElseIf/Else, Select Case, For, For Each, While)
✓ String Concatenation (&)
✓ Scripting.Dictionary
✓ Session Object
✓ Application Object
✓ Request Object (QueryString, Form)
✓ Response Object (Write)
✓ Server Object (HTMLEncode, URLEncode, MapPath, CreateObject)
✓ Operators & Comparisons
✓ Comments
✓ Special Values (Nothing, Null, Empty, True, False)
Test Completed: 2/15/2026 5:08:45 PM