|
|
| Everything HP200LX: Knowledge, Products, Service |
|
Days between datesFrom Fred Kaufman CompuServe ID: [72560,36] Calculate the number of days between two dates depending on the calendar method (1 = real, 2 = 365, 3 = 30/360) {Calendar| !Days between dates! if(S(today),cdate- today,0*(Date1+Date2)+ if(s(Date2),Date (Date1,#ofDays)-Date2,ddays (Date1,Date2,Calendar)- #ofDays ))=0 !calendar:1=real:2=365;3= 30/360!} This gives you an example that you could use in another equation. On the 100/200LX you can also perform date arithmetic directly with the Date Calcs function (press [CTRL]-[D] in HP Calc. Its easier than keying in and checking and equation if all you need is the number of days between dates.
|
|
Copyright © 2005 Thaddeus Computing Inc
<