Yeah, you'd have to write it differently for any variation on TryParse. Those functions return True or False. The converted date, if the conversion works, is returned in the second argument to the method. Therefore, you would pass subFolderDate as the second argument, and if the TryParse variant returns True, you'd have your converted value in the argument.