Hi,
I am subtracting between to dates. I get something like 30.65. 30 is in months and .65 in days.
I am trying to add a logic that will take this on board.
from 0-20 days should be 0 month and 21 above should be 1 month.
Can anyone help me with this please.
Thanks
0
Comments
RIS Plus, LLC
I hope this is clear?
Thanks
what exactly your 30.40 means ?
30 months and 40 days ?
does 30 months mean 30*30 days ? do you want your month to be 20 days long so that 30 months is equal to 30*20 days ?
explain to us what format you are using
I'm still unclear about the decimal though. Your example was 30.65. Taking the decimal part out of that you'd have 65, which in calendar days would be well over two months. By your logic it would be just 1 month, because it's higher than 21. How are you going to handle that?
RIS Plus, LLC
sorry for giving .65 as example. it is really a bad example i gave. So for bothering you because i am learning programming.
Thanks