Page 1 of 1

regarding Date difference (current date minus previous date)

Posted: Sat Feb 03, 2007 2:56 am
by uppalapati2003
hi All,

I have one senario, having 2 dates ie 20-09-2006 and 23-03-1983.
these are the dates ,my requirement is to calculate the difference between those two dates in days format. how to approch this ....any idea
this is in server jobs


regards
shrini

Posted: Sat Feb 03, 2007 6:53 am
by ArndW
Convert the dates to internal format and take the difference,

Code: Select all

ABS(ICONV('20-09-2006','D4DMY')-ICONV('23-03-1983','D4DMY'))

Posted: Sat Feb 03, 2007 10:46 am
by DSguru2B
If you want timestamp difference then you can use KBATimestampDeltaDays by Ken.