(view source code of sortdate.js as plain text)
// SortDate.js, Version 1.00 for Windows Script Host 1.00// Show current date in YYYYMMDD format// Written by Rob van der Woude// http://www.robvanderwoude.com// Get and parse current datenow = new Date();
day = now.getDate();
month = now.getMonth() + 1;
year = now.getYear();
// Add leading spaces if necessaryif ( day < 10 ) day = "0" + day;
if ( month < 10 ) month = "0" + month;
// Concatenate strings and display the resultWScript.Echo( "SortDate=" + year + "" + month + "" + day );
page last modified: 2025-10-11; loaded in 0.0053 seconds