Hello,
Welcome to Microsoft Q&A.
As the documentation says, without setting Date, you may get a misleading date.
Nevertheless, we can make a simple judgment on the obtained Date:
We can use DateTime.FromFileTime(0) to construct an identical value, and then compare it with the obtained DateTaken. If they are the same, the file does not have a date value set.
if (props.DateTaken.Date==DateTime.FromFileTime(0))
{
//Invalid date.
}
else
{
//Do something
}
Thanks.