Exception handling in date formats

how to capture two similar types of exception in one case ?
I need to convert date into dd/mm/yyyy format
current date can be in dd.MM.yyyy or dd.M.yyyy
(Datetime.ParseExact(Input_VAR_Date.ToString,“dd/mm/yyyy”,System.Globalization.CultureInfo.InvariantCulture)

Are you saying that the date could be 10.01.2021 or 10.1.2021?

If yes you could try

Date.Parse(Input_VAR_Date.ToString)