So, what exactly is your question? How to read input from a console window, or how to parse the input into a Date object?
For reading text from a console window, you could use class java.io.Console (if you're using
Java 6), or use a BufferedReader to read a line from System.in. To parse the input into a Date object, use class java.text.SimpleDateFormat. Lookup those classes in the API documentation.