Bill_misc_IT Posted November 10, 2011 Posted November 10, 2011 I'm running a script to notify via email when an employee reaches their 6 month anniversary. What is the correct 'calculation' to add 6 months to their 'hire date' field? Is there a simpler way than: If (month(hire date)<7, month(hire date)+6 &"/"& day(hire date) &"/"& year (hire date), month(hire date)-6 &"/"& day(hire date) &"/"& year (hire date)+1) I tried this and it works, but does can cause problems if the calculated month does not have 31 days (or 28 for Feb). Thanks. Bill
doughemi Posted November 10, 2011 Posted November 10, 2011 Date(Month(hiredate) + 6;Day(hiredate);Year(hiredate))
comment Posted November 10, 2011 Posted November 10, 2011 See: http://fmforums.com/forum/topic/59942-frequency/page__view__findpost__p__284146
Recommended Posts
This topic is 4781 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now