可能是你用错了。
我可以说是从帮助中学习DELPHI的,但没碰到你所说的情况。

解决方案 »

  1.   

    The following example assigns 'The meeting is on Wednesday, February 15, 1995 at 10:30 AM' to the string variable S. S := FormatDateTime('"The meeting is on " dddd, mmmm d, yyyy, " at " hh:mm AM/PM',   StrToDateTime('2/15/95 10:30am'));
    大家测试一下,delphi的FormatDateTime function的example代码就是通不过的
      

  2.   

    有些地方的语法有问题,我遇到过一次,直接Copy的代码缺少最后的';'号.