I am trying to create a gag calendar app and need some help getting the algorithm correct to create a calendar like this:
Sunday
Jan Feb .. Dec
2 6 4
9 13 11
16 20 18
23 27 25
30
Monday
Jan Feb .. Dec
3 7 5
10 14 12
17 21 19
24 28 26
31
And so on... I have the code from http://helpdesk.objects.com.au/java/display-a-month-as-a-calendar
But can't get the algorithm to do it like above.