Delphi EncodeDateTime vs. EncodeTime Time portion is different Here is an example which demonstrates the problem: