Magic Dates Check C++