Check the user date input is valid format

Hello i am the new user and let me ask the question here.
The user will enter the date into the input dialog and i need to check whether the date entered is a format type of yyyy/mm/dd. i set the assign like below and it does not work.

isFormatDate=DateTime.TryParseExact(in_Date, “dd/MM/yyyy”,System.Globalization.CultureInfo.InvariantCulture,System.Globalization.DateTimeStyles.None,DateCheck)

Thank you


Which format do you want to check, yyyy/mm/dd or dd/MM/yyyy?

If former, can you try the following expression?



Thank you Yoichisan, i found my mistake.

1 Like

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