title: How to convert TSQLTimeStamp to TDateTime
body: <p>I have a table in SQL Server 2008 like this:</p>
  
  <pre><code>CREATE TABLE B_INTERVENTION ( 
  ID_BI INT IDENTITY PRIMARY KEY NOT NULL ,
  Date_Creation DATE NOT NULL ,
  Cree_Par INT NOT NULL ,
  D_Arr BIT NOT NULL ,
  Obj_Demarrage DATE NOT NULL ,
  Obj_Fin DATE NOT NULL ,
  Type_BI CHAR (2) NOT NULL ,
  INSPECT INT NOT NULL ,
  VERIF INT NOT NULL ,
  Machine VARCHAR (13) NOT NULL ,
  Priorite INT NOT NULL ,
  Date_Fin_Trav DATETIME NULL ,
  Commentaire VARCHAR(80) NULL
  )
  GO
  </code></pre>
  
  <p>When I try to set the value of <code>Date_Fin_Trav</code> to a <code>TDateTimePicker</code> I get ann error in this line:</p>
  
  <pre><code>DateTimePicker1.DateTime := FDTable1Date_Fin_Trav.Value;
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>[Dcc32 Error] Unit1.pas (53): E2010 Incompatible types: 'TDateTime' and 'TSQLTimeStamp'</p>
  </blockquote>
  
  <p>So I change the code to:</p>
  
  <pre><code>DateTimePicker1.DateTime := TimeStampToDateTime( FDTable1Date_Fin_Trav.Value);
  </code></pre>
  
  <p>Also get an error because the <code>Type</code>:</p>
  
  <blockquote>
    <p>[Dcc32 Error] Unit1.pas (53): E2010 Incompatible types: 'TTimeStamp' and 'TSQLTimeStamp'</p>
  </blockquote>
  
  <p>So my question is : How to convert <code>TSQLTimeStamp</code> to <code>TDateTime</code>?</p>