I am C++ beginner and I am creating a C++ Windows console application using Visual Studio 2008, this application has fields to input data, I created a function which works fine, but I would like to create something that limits the users input, such as date field, once the user type the month which will use only two numbers and does not allow type anything else.