Convert String to Datetime Var

@Sami_Syed
String to DateTime:
Date.ParseExact(yourStringVar, “d/MM/yyyy”,CultureInfo.InvariantCulture)

ensure System.Globalization namespace is imported

Increment Date
(e.g. Add 1 day, other AddXX Functions are available as well
yourDateTimeVariable.AddDays(1)

DateTime to String:
yourDateTimeVariable.ToString(“d/MM/yyyy”)

1 Like