This is a default function within VBScript that should work in any VBScript situation. FormatDateTime(date,format) Date is required and has to be in a valid format but easily can accept date() or now() Date() would only display the current date where now() would be date and time. Format would be…