title: How do I check if a Variant is a TDateTime?
body: <p>I have an object, that has one value, but that value can either be an <code>integer</code>, <code>string</code>, <code>boolean</code> or <code>TDateTime</code>.  So, it is a <code>Variant</code>.</p>
  
  <p>I use <code>VarType()</code> to check its type, but since <code>VarType()</code> has no 'varDate' or 'varDateTime', I am using 'varDouble', because as far as I can gather, a <code>TDateTime</code> is a <code>double</code>.</p>
  
  <p>But that returns false.  I also cannot use <code>is</code> to check if the <code>Variant</code> is <code>TDateTime</code>.  Is there a way, or should I make some sort of type variable that determines which type the value is and use that to check it?</p>