you could try the parsedate() member of COleDateTime:
if (!COleDateTime::ParseDateTime("12/11/2008")
{
// That's not a date bucko!
}
I don't have MFC anymore, so I can't test it, but I'm sure it works somewhat like that. If this doesn't work you should have a look at the wxDateTime object from wxWidgets.
Last edited by niek_e; Nov 21st, 2008 at 9:34 am.