I have a date value in cell B3 ('03-02-1995') and a string value in cell B4 ('String value'). I want to check if cell B3 contains a date value

I have a date value in cell B3 (‘03-02-1995’) and a string value in cell B4 (‘String value’). I want to check if cell B3 contains a date value, then break the flow; otherwise, continue and check is it empty or string value.

Note : In if condition i want to check the cell value contains Date value, String value or it is empty.

@Mohammad_Rizwan_03,

Use this condition.

If (DateTime.TryParse(strInput, Nothing),"date", If (String.IsNullOrEmpty(strInput), "empty", "string"))

Here you can pass your B3 cell value in the place of strInput. In case you want to break the loop, use Break activity.

Sample Code:
Main.xaml (8.4 KB)

Input:

Output:
image

Input 2:

Output:
image

Thanks,
Ashok :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.