Array ( [0] => [1] => questions [2] => Strings [3] => Date-Format ) Strings | Date Format | THE INQUISITIVE





Date Format

LEVEL:Beginner

Description

Given a String. You have to find the given format is in DD-MM-YYYY or not.

Input Format

First line contains a string.

Output Format

Print Yes if the given format is there else No.


Example 1:

Input
10-12-20
Output
No
Example 2:

Input
20-2020-5			
Output
No
Example 3:

Input
10-12-2020
Output
Yes

oops

Login to see Discussion




Approach

0


Note :

Let us know if you can come up with a better approach, mail us at support@theinquisitive.in Your approach will be reviewed and posted with credits to you.

oops

Login to see Solution