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 - Show more from this author

Share on Facebook Share on Twitter

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

  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

 

Comments

Log in to post comments.

 

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

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: