Baylah Posted October 10, 2007 Posted October 10, 2007 Hello, I asked this question many years ago but I can no loner find the answer so I apologize for asking again. I want to write a calculation where StartDate-EndDate=NumberDays Easy enough, but if the StartDate is a Thursday and the Endate is a Monday I only want the calculation to return "1" as the answer..essentially taking the weekend days out of the equation. I am not really concerned about three day weekends or weird anomolies. Does anyone know a calculation that would do this? Thanks in advance for any help. Steve
Delta Tango Posted October 10, 2007 Posted October 10, 2007 Let( [ startDate = yourfield; EndDate = your2ndField; Difference = startDate - EndDate ]; If( DayName(startDate) = "Thursday" and DayName(EndDate) = "Monday"; 1; Difference ) )
comment Posted October 10, 2007 Posted October 10, 2007 What, you can't find your own topics? http://www.fmforums.com/forum/showtopic.php?tid/172410
bcooney Posted October 10, 2007 Posted October 10, 2007 How about this CF, Weekdays(startDate, endDate).
comment Posted October 10, 2007 Posted October 10, 2007 Or is it this one: http://www.fmforums.com/forum/showtopic.php?tid/176516
Baylah Posted October 10, 2007 Author Posted October 10, 2007 Sorry, I couldn't locate it. I admitted it up front. Steve
Genx Posted October 10, 2007 Posted October 10, 2007 Click the "My Topics" link in the Welcome Back Bar at the top right.
Recommended Posts
This topic is 6314 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