Well, that depends on what db you are using. If you are using MySQL you could do:
select if($datefield>now(),1,0) as valid where user_id=$user_id;
This will return 1 (true) if the user is still valid (i.e. the stored date is greater than the current date, meaning it hasn't expired) and 0 (false) if they have expired.