I just tested the above code...it only works properly from 1902 onwards...
so now the question is... is there a convenient way for me to be able to determine the day of a particular date before 1902? or do I have to write that class myself? It's gonna be tricky.....