note
tobyink
<blockquote><p><i>BTW, "validate valid date" has a nice ring to it :)</i></p></blockquote>
<p>Good point. If we only need to validate <b>valid</b> dates, then the following should work:</p>
<code>
print("Enter the date in dd-mm-yy format: ");
while(<STDIN>)
{
print("You have entered valid data\n");
}
</code>
954253
954271