Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: stonysmithLet's say that you have a field containing the date named "myDate"
compute a new value for Jan 1 of that year:
newYears = date(year(myDate),1,1)
then use dateSubtract
julianDate = dateSubtract(myDate,newYears)+1