Create a function that takes as parameters three numbers which represent a date (day, month, year), and verifies if this date is valid by returning 1 for valid, and 0 for invalid.
You will have to check that the year is a positive number, the month is within the correct range, and the day is in the correct range within the month.