System.Culture info

This is the method to convert a string type into datetime.

  • EBS_DateFrom - string variable which will be converted into datetime
  • “yyyy/MM/dd” - date format of EBS_DateFrom variable
  • System.Globalization.CultureInfo.InvariantCulture - CultureInfo, not important in this case. But if you have date formats with month or day name (1 January 2023, Mon 02 Jan 2023, Janvier 2023 etc.) you have to use specific CultureInfo, for instance “new CultureInfo(“fr-FR”)” for french dates