>Sorry but I don't understand VFP documentation in this matter. Please somebody help.
>I have a field in which a date should be entered. I want that field being a text field that'll convert to date afterwards, and I want the user to enter the last two digits of the year only.
>First problem: I set the Input mask to ##/##/19## so that the user doesn't have to enter the whole year, but the field only displays / /1 (the 9 is missing) ??
>Second problem:
> This field calculates the age of a person. But if I enter a date with a 2 digit year lower than 1950, it calculates a negative number. I've read the documentation regarding the SET CENTURY stuff, but frankly I don't understand what to do with the SET CENTURY TO and ROLLOVER thing to accomplish this.
>TIA
>Ulises.
In addition to sergey's offer - check this
SET CENT ON
in the date textbox, set
FORMAT=RD
INPUTMASK=99/99/9999
For the year, if the use enters 01, VFP will show it as 2001! HTH tt
Imagination is more important than knowledge