Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!ux1.cso.uiuc.edu!resnick From: resnick@cogsci.uiuc.edu (Pete Resnick) Newsgroups: comp.sys.mac.programmer Subject: Months, Days and Dates Message-ID: <1990Oct12.032145.13225@ux1.cso.uiuc.edu> Date: 12 Oct 90 03:21:45 GMT Sender: news@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 18 I am doing a little program which will have a date that you can change using pop-up menu's. So, I need to have a menu for Day of Week, Month, and Date. Day of Week and Month I can do pretty easily; just roll through the itl1 resource for the names of the months and the names of the days and Append them to the respective menus (if you have a niftier way to do this, I would be open to it). But there is no nifty system-defined way of finding out how many days go with each month. I can teach my program the little "Thirty days has September, April, June and November" quip, but I know the system figures this out from time to time all by itself. Any way for my program to do this easily? pr -- Pete Resnick (...so what is a mojo, and why would one be rising?) Graduate assistant - Philosophy Department, Gregory Hall, UIUC System manager - Cognitive Science Group, Beckman Institute, UIUC Internet/ARPAnet/EDUnet : resnick@cogsci.uiuc.edu BITNET (if no other way) : FREE0285@UIUCVMD