cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
nj
Nintex Newbie

Check if textbox contains valid date?

I'm trying to figure out how I can set a validation rule to check if a Single Line Textbox contains a valid date or not. I should probably use a date control but in this case I need it to be a textbox. Can someone help me figure out what the validation rule would consist of?

The date is currently put into the box automatically in the proper standard format of MM/DD/YYYY but I have to allow it to be typed in as well. 

0 Kudos
Reply
2 Replies
michael_creek
Nintex Newbie

Re: Check if textbox contains valid date?

try this...use a hidden date field and check it's value when populated from the text field.

Enter txt date field in this form "yyyy/mm/dd" 

Example "1999/02/28" 

Then use formula translate(txt_fieldvalue., "/", "-") set date field

0 Kudos
Reply
Automation Master
Automation Master

Re: Check if textbox contains valid date?

you can write a validation rule with formula like

not(isDate(convertToDate(DateTextControl)))
Reply