I am trying to create a validation script on my start date and end date. A simple validation that says the start date selected has to be less than the end date. Because apex treats my date fields as strings, using a pl/sql expression such as P101_START_DATE <= P101_END_DATE doesn't work. This may seem like an easy issue but I am having trouble creating this simple validation. Any help would be greatly appreciated. Thanks in advance!
i had tried this a few times but I kept getting an invalid numer to character error. Maybe my syntax was off. Let me try again.
I must have had syntax errors. I tried it again, the way you typed it out and it worked. Before I was using '/' instead of '-' to separate the date fields.