Subtract the 4 days from the given date and paste it in the excel cell

@Symbat_Almakhan it’s not add months ,it should be adddays in your code.Try this
(Datetime.ParseExact(endDate,“dd/MM/yyyy”,system.Globalization.CultureInfo.InvariantCulture).Adddays(-4)).ToString