There are few ways to determine the day of the year.  The first way I show here is a bug.

with(Finance):
FormatDate("Aug-4-2015","%j")
                                             "%j"

it was described on the help page that the options can be of the form of any described in StringTools[ParseTime] of which %j did not work.  Fortunately there's other ways.

with(StringTools):
ParseTime("%m-%d-%Y", "8-4-2015"):-yearDay
                                                                       216

with(Finance):
DayCount("jan-1-2015", "aug-4-2015")+1
                                                                  216

 

 

                                                              

 

 


Please Wait...