Jalz Posted August 31, 2004 Posted August 31, 2004 Hi guys, Im using FileMaker Pro 6, is there a way I can calculate whether we are in British Summer Time or not (result should be Y or N)? British Summer time starts on the last Sunday of March and ends on the last sunday of October. I'm racking my brains and I can't seen to figure out how to do it with the functions in FM Pro 6. Cheers Jalz
Lee Smith Posted August 31, 2004 Posted August 31, 2004 Requires three fields: Year (number) You enter the year as four digits. (i.e. 2004) You need a two calculations, with the results as dates. Start_Summer Date( 3 , Choose( DayofWeek( Date( 3 ,1, Year )) , "" , 29, 28 ,27, 26, 25 , 31, 30) , Year) End_Summer Date( 10 , Choose( DayofWeek( Date( 10 ,1, Year )) , "" , 29, 28 ,27, 26, 25 , 31, 30) , Year) You may have to replace the "," with ";" for your version of FM6. HTH Lee
-Queue- Posted August 31, 2004 Posted August 31, 2004 And, of course, don't forget the easier, unstored calculation Status(CurrentDate) >= Start_Summer and Status(CurrentDate) <= End_Summer. Set the result as a number. It will be 1 for true and 0 for false. Put this field on your layout and format the number to be a boolean.
Jalz Posted August 31, 2004 Author Posted August 31, 2004 Thanks Guys, I've got it to work, would never of thought of using the choose function. Guess you learn something new everyday! Cheers Jalz
Recommended Posts
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