RE: date help
- Posted by Jonas Temple <jktemple at yhti.net> Aug 23, 2001
- 385 views
George Walters wrote: > Has anyone written a rtn to handle entry of a date in an editText field? > I'm > looking for a rtn to add the '/'s during entry and also be able to > handle > edits properly of the field... George, You will need to get a hold of datetime.e written by Carl White from the archive. It's an excellent library for date/time maniuplation/calculation. "Two Thumbs Up!" There's a routine in his library called "ValidDate". Also if you download my Timesheet program from the "Recent Contributions" page there are two routines to handle formatting a date for display in an edit window and converting that character value to numeric for validation (CvtDate and ExtractDate). The timehseet program uses dates pretty extensively. Also, I would suggest if you are requiring the user to input a date try using the MonthCalendar control in Win32lib. Makes date entry much easier. Hope this helps. Jonas