Brian Dunning's FileMaker Custom Functions

DateToJD ( thedate ; gregorian )

converts a date into a Julian Day number

  Average rating: 4.5 (31 votes) Log in to vote

Theo Ros   Theo Ros

Share on Facebook Share on Twitter

  Sample input:
DateToJD ( Get ( CurrentDate ) ; 1 )
  Sample output:

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Returns a Julian Daynumber for date in 'thedate'
this number is based on November 24 -4713 (=day zero Gregorian)
which is January 1 -4712 (January 1 4713 BC) Julian.

In: thedate - a FileMaker Date field.
if empty, the function uses the current date
gregorian - optional: if <> 0 or empty use Gregorian calendar
if 0 use Julian calendar
defaults to Gregorian calendar

Return type: Number
Syntax: DateToJD ( thedate )
Return type: Number



Log in to post comments.


Note: these functions are not guaranteed or supported by Please contact the individual developer with any questions or problems.

Under construction. Email me your wish list for improvements.