Hi, all, I have a need to do a date comparison and some math using a date 
in a proc. I figured out how to obtain today's date by doing this:
S10
D
I can then retrieve that date by doing T %10:D. I did this to verify that I 
was indeed getting today's date in internal format, and I got 19503, as 
expected. 

Now I need to compare an "expiration date" field against today's date, to 
make sure the expiration date is not passed. My field value is also 19503, 
but none of these statements returns true:
IF %10 = &5.17:D T (0,2),"DATES ARE EQUAL"
IFN %10 = &5.17:D T (0,2),"DATES ARE EQUAL"
IF %10 = &5.17 T (0,2),"DATES ARE EQUAL"

Further down in the code, I need to add a number of days to the expiration 
date.  Can't get that to work, either. Am trying:
 F;%10;&7.495;+;?%130

Can anyone please help me see what I'm doing wrong?
Thanks,
Joyce

-- 
-- 
IMPORTANT: T24/Globus posts are no longer accepted on this forum.

To post, send email to jBASE@googlegroups.com
To unsubscribe, send email to jbase-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jbase+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jbase/574da095-2eb8-44a3-9ef4-37a40867d6c8n%40googlegroups.com.

Reply via email to