Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

What would be the regular expression for the Due Date field

Hi,

We are planning to validate a field (Due Date) with the regular expression. We are planning to achieve the functionality where Due Date cannot be lesser than Current Date. It can be equal to or more than Current Date. Can it be achieved by Regular Expression format. If yes, how? Any help is appreciated

0 votes

Comments

 I guess you also need to consider about the local settings for date validation



One answer

Permanent link
I don't think Regular Expression is the right approach for the said purpose. Regular Expression can easily validate the format of a date value (actually that's a string). But for your intended goal, you will need to do calculation/comparison of the date value. If you are doing Attribute Customization, you can opt for a Script Based Validator instead.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,121

Question asked: Apr 13 '16, 6:37 a.m.

Question was seen: 2,199 times

Last updated: Apr 14 '16, 12:08 a.m.

Confirmation Cancel Confirm