Ashfaque
Search Beautiful Girls from your town for night
- Local time
- Today, 11:29
- Joined
- Sep 6, 2004
- Messages
- 897
Hi,
It is strange that when I am counting days from-to date, gives me realistic total number of days. But when I am trying to get it in months from same from-to days, it calculating more months.
The Dates are :
LastWorkingDay= 15/03/2020
IqamaExpiryDate =02/09/2020
It is around 171 days. But if you put in VBA Code as below. P resulting 171 days but Q displaying 6......?? and R producing 21.
P = DateDiff("d", LastWorkingDay, IqamaExpiryDate)
Q = DateDiff("m", LastWorkingDay, IqamaExpiryDate)
R = (DateDiff("d", LastWorkingDay, IqamaExpiryDate) Mod 30)
Also I find difference in Excel Sheet Calculation and Access VBA.
Is there someone who can explain or sort this issue? Bcz this making big difference in calculating period.
Thanks in Advance.
Ashfaque
It is strange that when I am counting days from-to date, gives me realistic total number of days. But when I am trying to get it in months from same from-to days, it calculating more months.
The Dates are :
LastWorkingDay= 15/03/2020
IqamaExpiryDate =02/09/2020
It is around 171 days. But if you put in VBA Code as below. P resulting 171 days but Q displaying 6......?? and R producing 21.
P = DateDiff("d", LastWorkingDay, IqamaExpiryDate)
Q = DateDiff("m", LastWorkingDay, IqamaExpiryDate)
R = (DateDiff("d", LastWorkingDay, IqamaExpiryDate) Mod 30)
Also I find difference in Excel Sheet Calculation and Access VBA.
Is there someone who can explain or sort this issue? Bcz this making big difference in calculating period.
Thanks in Advance.
Ashfaque