Returns the number of days between a the Julian Calendar for a given date and the Gregorian Calendar
Sample Input:
CalendarDiff ( InputDate1; True )
Sample Output:
-13
(if Inputdate contains June 20, 2005)
Description:
Returns the number of days between a the Julian Calendar for a given date
and the Gregorian Calendar
In: thedate - a datefield in either Julian or Gregorian Calendar
gregorian - True (1) if the given date is in the Gregorian Calendar
False (0) if the given date is in the Julian Calendar
Return type: Number
To switch between calendars, use this like:
myJulianDate = myJulianDate + CalendarDiff ( GregorianDatefield ; 1 )
myGregorianDate = myGregorianDate + CalendarDiff ( JulianDateField ; 0 )
p.s. on Julian dates, do not expect Filemaker to return the DayOfWeek correctly.
Note: these functions are not guaranteed
or supported by BrianDunning.com. Please contact the individual
developer with any questions or problems.
Free pop-up calendar for your FileMaker solution. Click
here.
Custom Function Authors:
Link to all of your own custom functions on this site with the following URL:
http://www.briandunning.com/filemaker-custom-functions/results.php?author=Your
Name Here