This is my first attempt ever to write an article of any kind. I don't have much experience in programming, but I would love some feedback about this article in order to learn. English is not my primary language so be nice to me. :-)
I'm currently working on a calender application with a friend of mine, and knowing the weekday and the weeknumber is somehow fundamental. ;)
I can't remember where I found the algorithms and information necessary to know how to retrieve the weekday and weeknumber, but if you know, then contact me and I will give the person credits for it.
How to use
is easy to use. First, declare an instance of the object.
After this you should set the date. For example October 15, 2004.
To retrieve the weekday or the weeknumber, simply use:
nWeeknumber = date.getWeeknumber();
nWeekday = date.getWeekday();