Whenever I ran this bot enter this-‘Type 01/01/0001 into Start Date’.
What does this mean DateTime.ParseExact(EBS_DateFrom, “yyyy/MM/dd”, System.Globalization.CultureInfo.InvariantCulture)?
TIA
Converts the specified string representation of a date and time to its DateTime equivalent using the specified format and culture-specific format information. The format of the string representation must match the specified format exactly.
Refer below link for more info
Regards,
Arivu
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