Hi, I have attached a robot to this post. I don’t know what the extensions to the assign do (TryParse, ParseExact, etc). I also don’t know why there is a message box to show the time when time was not assigned to strDate variable. I tried to google but don’t really understand.
tryParse - checks if string is a valid datetime, in this case the string to check is strDate(20-06-2022), it returns true if success , false if failed hence why it was used in the if statement
the messagebox is showing datetime_for_demo.ToLongDateString not strDate