In my code I am facing a problem. Example code:
var d1: tdatetime begin d1 := strtodatetime(\'23/02/2011 12:34:56\'); end;
but it
Using VarToDateTime might be a lot simpler and it just works out of the box:
uses Variants; newDateTime := VarToDateTime('23/02/2011 12:34:56');