Hi,
Can you try the following step?
varDateTime = Datetime.ParseExact(in_DataTableDLV030.Rows(0)(3).ToString.SubString(0,10).Trim, “dd/MM/yyyy”, System.Globalization.CultureInfo.InvariantCulture)
Then check if it’s Sunday. Condition is
varDateTime.DayOfWeek=DayOfWeek.Sunday
If Sunday, use AddDays method
varDateTime = varDateTime.AddDays(1)
Finally convert it to dd/MM/yyyy style string.
varDateTime.ToString("dd/MM/yyyy")
Regards,