...or use your e-mail

Go back to Challenges list


Date Validator

In this challenge you will receive a string containing two dates and you need to validate a few things:
- Both dates are valid
- Both dates are in the right format (mm/dd/yyyy)
- The first date is lower or equal then the second

Input Format
Each test case contains a string with two dates separated by a " - " like the following example: "12/23/2013 - 10/01/2014"

Output Format
For each test case output "Valid" if the everything is valid or "Invalid" if not.

Sample Inputs
12/23/2013 - 10/01/2014
11/22/2013 - 23/01/2015

Sample Outputs

Memory Limit

Sign Up or Login to solve this Code Challenge