calculate the no of month(s) between two different date

hello,

I want to calculate the no of month(s) between two different date, for
example,
the no of months between "13/05/97" and "24/04/98". I know powerbuilder
provide
"daysafter" to calculate the no of days between two different dates.

frankie




0
Frankiel
5/12/1998 1:49:44 AM
📁 sybase.powerbuilder.general
📃 62418 articles.
⭐ 17 followers.

💬 1 Replies
👁️‍🗨️ 1611 Views

make a user object of some sort and put this function in it...

function uf_monthsafter(date adt_date1,date adt_date2) returns long
return Year(adt_date2)*12 + Month(adt_date2) - Year(adt_date1)*12 -
Month(adt_date1)

Frankiel wrote in message ...
>hello,
>
>I want to calculate the no of month(s) between two different date, for
>example,
>the no of months between "13/05/97" and "24/04/98". I know powerbuilder
>provide
>"daysafter" to calculate the no of days between two different dates.
>
>frankie
>
>
>
>


0
Sam
5/12/1998 12:39:38 PM
Reply: