robertdseals
Active Member
- Joined
- May 14, 2008
- Messages
- 334
- Office Version
- 2010
- Platform
- Windows
Hello,
I'm trying to count the number of complete months between two dates. 1/15/23 - 5/21/23 would equal 3. The problem occurs that they also want to include months that start on a weekend. So, if someone starts on monday the 2nd, they would get credit for that entire month. Lastly, you would need to take into account holidays (US). So, if someone was hired on September 4th because the 1st was on Saturday and memorial day was on Monday they would still get credit for the entire month. But, if they were hired on the 4th of another month without a holiday, they wouldn't get credit for that month.
I'm trying to count the number of complete months between two dates. 1/15/23 - 5/21/23 would equal 3. The problem occurs that they also want to include months that start on a weekend. So, if someone starts on monday the 2nd, they would get credit for that entire month. Lastly, you would need to take into account holidays (US). So, if someone was hired on September 4th because the 1st was on Saturday and memorial day was on Monday they would still get credit for the entire month. But, if they were hired on the 4th of another month without a holiday, they wouldn't get credit for that month.