How would I validate a date input that looks like 01 / 23 / 10? It needs the spaces and slashes. i know how to validate the month day and year i just can not figure out how to validate the blank space and slash in Java.

Are you saying the blank spaces are required? Would the date 01/23/10 be invalid?

A space character can be represented as ' ', or as a string, it would be " ". The slash character is just '/', or as a string it would be "/". Does that help?

I think you should try to write your validation method, and then post the code along with a more specific question if you get stuck.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.