I'm writing a program that will output an HTML file which has a calendar on it. The calendar is displayed in a tabular format. What I'm having trouble with is detecting which day of the week the month starts, as well as how many days are in a month. I'm trying to use the UNIX cal command to retreive this data. Is there a way I can store the output of cal into an array?
Any help would be greatly appreciated.
Any help would be greatly appreciated.