FormatDateTime('yyyy"年"mm"月"dd"日"',datefield);

解决方案 »

  1.   

    以上方法适用于Delphi4.0及以前版本,Delphi5可以这样
    QRLabel1.caption:=FormatDateTime('yyyy',datefield)+'年'+FormatDateTime('mm',datefield)+'月'+FormatDateTime('dd',datefield)+'日';这个方法可以较笨,但却绝对有效,适用于各版本Delphi。各位老大如有好的方法,不妨指教一二。
      

  2.   

    FormatDateTime('YYYY''年'+'''MM''月'''+'DD''日',datefield),肯定正确. 
      

  3.   

    同意 li_zhifu(东北人)
    QRLabel1.caption:=FormatDateTime('yyyy',datefield)+'年'+FormatDateTime('mm',datefield)+'月'+FormatDateTime('dd',datefield)+'日';