When I input DayName[{2012,12,24}]
I get Monday
as output. What is the most effective way to convert Monday into 1, Tuesday into 2 etc.?
To do this, I can create a length-7 array to store all the day-name and then do some matching and return the matched position. But that approach is too clumsy. Is there any other lighter and faster way?