Vince,
You will need to modify the function as per your requirements. You may call the function in VALID(). The function can only tell you whether the date is valid or not. Then you need to decide what you want to do next, e.g. display a message, restore previous (saved value), etc.