(view source code of sortdate.vbs as plain text)
' SortDate.vbs, Version 1.00 for Windows Script Host 2.00
' Display today's date in YYYYMMDD format
'
' Written by Rob van der Woude
' http://www.robvanderwoude.com
strSortDate = DatePart("yyyy",Date)
If DatePart("m",Date) < 10 Then
strSortDate = strSortDate & "0"
End If
strSortDate = strSortDate & DatePart("m",Date)
If DatePart("d",Date) < 10 Then
strSortDate = strSortDate & "0"
End If
strSortDate = strSortDate & DatePart("d",Date)
Wscript.Echo("SortDate=" & strSortDate)
page last modified: 2024-04-16; loaded in 0.0079 seconds