Validate Date (YYYY-MM-DD)

PHP Easy 6 views
Back to Questions

Problem Description

If date is valid (YYYY-MM-DD), print OK else INVALID_DATE.

Input Format

One token date.

Output Format

OK or INVALID_DATE.

Sample Test Case

Input:
2024-02-29
Output:
OK

Constraints

1900-01-01

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next