HOW TO SUBRACT TWO DATE ( NEED ANS IN days )

Question: how to subract rwo dates
i mean current date minus previous date..
need ans in no of days...
please help me....
_________________
RAJA

Answer:
how to subract rwo dates
i mean current date minus previous date..
need ans in no of days...
please help me....

How about this FM DAYS_BETWEEN_TWO_DATES ?

Answer:
I prefer

I prefer

data: number_of_days type i.

data: thisdate type d,
      thatdate type d.
.
.
.
number_of_days = thisdate - thatdate.

IIRC this was asked fairly recently...

Search is your friend /forums/viewtopic.php?t=153658&highlight=dates

m@t

Why you prefer this M@t ?

Answer:
CAPS LOCK not allowed

Read basic rules

Topic locked
_________________
The Doc
Magna Grand Docot of the Tuly Idiot Order

2007 Basic Rules
Copyright ?2007 - 2008 www.jt77.com