Feb 06, 2019 08:09 AM|Wei Zhang|LINK
According to your description,It seems the value of text is the form of date. So, could you please tell me which date would you like to compare with ? How 19 or 18 get ?
If you could post more details,it will help us to solve your problem quickly.
Else I suggest you to use Knockout validation. Here is the link , I hope it could help you.