add support for day of year, week of year date formatting

the two commits here allow for calculating the ordinal day of the year (1-366) and the week of the year (1-52).