How to check given date is in MM/DD/YYYY format

Sharing this from my past learning,

Why it didn’t work in Assign/IF activity?

How can we resolve ? Existing sample for Double.TryParse

Solution: Use TryParseExact/TryParse in Invoke Code/Method

Date_TryParseExact_InvokeMethod.xaml (13.5 KB)

Note: You can also use TryParse for your requirement

MSDN References:

  1. DateTime.TryParse Method (String, DateTime)
  2. DateTime.TryParseExact Method (String, String[], IFormatProvider, DateTimeStyles, DateTime)
1 Like