From: Paul Lutus Date: 2006-12-12T08:40:13+09:00 Subject: Re: Suggestions for a date picker that supports mm/yyyy Jason Vogel wrote: > Does anyone have some suggestions for a date picker that supports > mm/yyyy. Do you mean a GUI component? > Also, does anyone know the "best" way to validate a mm/yyyy as "valid"? > Meaning this month or the future? Test the entered month and year to see if they are >= the present month and year? You cold do this by adding the present year * 12 to the present month, this gives you an easily compared integer with units of months. Do the same to the user's entry and there you are. If you include days and require the resolution of days, things become more complicated, but for the case of month and year, it is rather easy. -- Paul Lutus http://www.arachnoid.com