Julian Dates and the Cal command

hey all,

I was wondering if it was possible to get the julian date with the cal command.

I know that the "-j" option will display it, however, i need the Julian Date of a specific date, in number.

For example, the User would enter their age like
19800101 or YYYMMDD, like so. This info is essentially $1.

The farthest I have gotten is,

cal $month $year -j

This will display the julian date numbers for the entire month, however i need it only for the $day parameter which is entered by the user.

cal does not manipulate the day parameter however,

any help would be greatly appreciated.

~shan2on