Yes, but I still needed Sergey's resolution to determine if the user entered 00 or if he/she just stepped through the textbox without entering any value because 00 will convert to 2000 and no value equates to 0 in a numeric textbox and I needed it to return the current year.
>Tracy, you cannot use the VFP behaviour for do this ?
>
>
>SET CENTURY TO 19
>SET CENTURY ON
>value = '04'
>? YEAR(CTOD('1/1/'+m.value))
>value = '2004'
>? YEAR(CTOD('1/1/'+m.value))
>
>
>Fabio
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"