VBScript Function - Microsoft

Windows PowerShell makes it easy to format and manipulate date and time values … provided, of course, that you actually have date and time values. To verify that a value truly is a date-time value all you have to do is use the –is operator and check to see if the data type is datetime. ................
................