![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Looked through the archives and I couldn't find anything that would give me the date of the next Saturday. |
#3
| |||
| |||
|
|
Looked through the archives and I couldn't find anything that would give me the date of the next Saturday. Anyone? (Yes, I am building heaps of reports lately :-) ) |
#4
| |||
| |||
|
|
On 2010-09-16 23:37:56 -0700, dvfx <damien... (AT) gmail (DOT) com> said: Looked through the archives and I couldn't find anything that would give me the date of the next Saturday. Anyone? (Yes, I am building heaps of reports lately :-) *) Always checkwww.briandunning.comfirst when you need something like this. There are so many custom functions already there, there is always something close, if not exact. http://www.briandunning.com/cf/345 will give you *the next date, based on a day name, from a designated date. *Easy as pi. Lynn Allen FM10 Certified Developer |
#5
| |||
| |||
|
|
On Sep 18, 1:02*am, Lynn Allen <l... (AT) semiotics (DOT) com> wrote: On 2010-09-16 23:37:56 -0700, dvfx <damien... (AT) gmail (DOT) com> said: Looked through the archives and I couldn't find anything that would give me the date of the next Saturday. Anyone? (Yes, I am building heaps of reports lately :-) *) Always checkwww.briandunning.comfirst when you need something like this. There are so many custom functions already there, there is always something close, if not exact. http://www.briandunning.com/cf/345 will give you *the next date, based on a day name, from a designated date. *Easy as pi. Lynn Allen FM10 Certified Developer Forgive my lack of understanding with custom functions. I've tried several times to get this to work. I have FMP 11 Advanced, but nothing I do when I put in that function seems to work. Could someone actually see if they can get this to work? |
#6
| |||
| |||
|
|
Forgive my lack of understanding with custom functions. I've tried several times to get this to work. I have FMP 11 Advanced, but nothing I do when I put in that function seems to work. Could someone actually see if they can get this to work? |
#7
| |||
| |||
|
|
Forgive my lack of understanding with custom functions. I've tried several times to get this to work. I have FMP 11 Advanced, but nothing I do when I put in that function seems to work. Could someone actually see if they can get this to work? |
#8
| |||
| |||
|
|
On 9/21/2010 12:30 AM, dvfx wrote: Forgive my lack of understanding with custom functions. I've tried several times to get this to work. I have FMP 11 Advanced, but nothing I do when I put in that function seems to work. Could someone actually see if they can get this to work? You don't even need to use them as custom functions. The one that Michael posted can just be used as a regular calculation without being part of a custom function. However, I think Michael's seems to find the last Saturday of a month(?). I just wrote this and haven't fully tested it, but it seems to work for about a dozen different tests I just did in the data viewer: let([ theDate = get(currentdate), target = 7]; // Saturday is day #7 theDate - Mod ( DayOfWeek ( theDate ) - target ; 7 ) + 7 ) You may need to make adjustments to accommodate your needs. If today is Saturday, for example, the above calc will result in NEXT Saturday rather than today. Just depends on your needs. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Howard Schlossberg FM Professional Solutions, Inc. Los Angeles FileMaker Certified Developer Associate Member, FileMaker Business Alliance |
![]() |
| Thread Tools | |
| Display Modes | |
| |