Re: Delphi dates and MaskEditPosted by webmaster Guido on March 25, 19103 at 17:32:57: In Reply to: extreme dates posted by Ste D on March 25, 19103 at 15:37:15: : im using mask edit boxes to input dates into my database, as this is for my college Delphi project i need examples of validation is thier any way to stop people from inputing dates such as 99/99/9999 or dates that are way in the past or future e.g. 01/01/1720 or 01/01/2030 ------ Only using a mask can't help you, I'm afraid. You have to convert the contents of the edit boxes to dates, test if they are within
a certain range, and if not, show the user an error message. |
|