I tried using an if statement to check whether the input date needs to be formatted with date.fromstring or not, but it isn’t working. Formatting the date with date.fromstring all the time causes issues in some situations (e.g., when the input is empty). What solution do you use to determine when date.fromstring is needed and when it’s not?