An application sends a ZGM_GETDOY message to get the day of the year for the given julian date.
ZGM_GETDOY
wParam = 0; //not used; must be 0
lParam = (LPARAM)(int) iJulianDate; //julian date
This message returns the day of the year for the given julian date. If the julian date specified in lParam is valid, the return value will be in the range of [1..366]. If the julian date specified in lParam is not valid, this message will return 0;