The str2Date method will return a date for any string you pass to it. If the string is not in a valid format or is blank, it will return a null date. You can try the following... dateString = conpeek(readCon, 4); if (str2Date(dateString) == datenull()) { throw error('Error en TransDate'); }
↧