Answered
What im trying to do is check a date field to see if the date has not happened yet.
This is on a pilot application, I have a date Field called DateIssued1, I wanted to check to see if the data had not happened yet, by checking against the current computers clock.
(this is form calc btw)
//
if (DateIssued1 > Date2Num(Date(),"MM/DD/YYYY")) then
DateIssued1 = "*Invalid*"
endif
//
Now I thought that might work, but it doesn't, now there is no error either,
so maybe my principle is right but im not quite there.
Anyone have any input on this?
Or am I seeking the impossible road?
Since one would need to reformat the date string to number and then to a new date sting and convert the current date to a date string, why not avoid one of the conversions and just deal with the dates as numbers.
"Date()" returns the number of days since the fixed epoch date and "Date2Num()" will return the number of days from the same epoch date of the passed date string. Now you can now do a simple numeric comparison to get your answer.
George Kaiser