This seems like a no-brainer but I couldn’t find anything on it.
How do I detect if a date variant in Outlook is “empty”? For example TaskItem.DueDate – the duedate is not necessarily filled.
If it’s not filled Outlook returns “4501.01.01.” – I can test for this value, but this just doesn’t seem “elegant” enough.
Thanks!
1/1/4501 is the value Outlook uses for DATE_NONE. Many documents on MSDN refer to this implementation detail.