Two things come to mind:
1) JavaScript requires an "if" not an "IF" - but I'm not sure if that was just a formatting change when you typed it in the post or not
- or -
2) UDate is a different format...but you would think it would show something.
I did this and the syntax was fine:
var UDate = 5/19/02;
if (UDate < 5/19/02){"<5/19"} else {">5/19"};
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.