eimon
(eimon)
September 10, 2020, 10:06am
1
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
Yoichi
(Yoichi)
September 10, 2020, 10:20am
2
Hi,
Which format do you want to check, yyyy/mm/dd or dd/MM/yyyy?
If former, can you try the following expression?
Datetime.TryParseExact(stringVar,"yyyy/MM/dd",System.Globalization.CultureInfo.InvariantCulture,System.Globalization.DateTimeStyles.None,datetimeVar)
Regards,
eimon
(eimon)
September 10, 2020, 11:05am
3
Thank you Yoichisan, i found my mistake.
1 Like
system
(system)
Closed
September 15, 2020, 4:25am
4
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.