You could enter a date like 55-99-9076 or whetever and if ereg works like you imagined it will assume that it is a right formatted string not the date...
I would recommend using checkdate() for date validation...
Although the parameter would have to be set like (mm,dd,yyyy) but thats not a big issue to add to your current code...
And for your code try this:
preg_match("/\d\d[-]\d\d[-]\d\d\d\d/",$checkin)
but I'm not sure whether it will work at all