Crystal Reports for Rational Application Developer 设计员指南

转换日期、时间和日期时间值

任何字符(日期或时间格式字符除外)都可以在格式字符串中使用。例如,您可能想用斜杠符号来分隔不同的日期元素(年、月、日),如“12/30/95”,也可能想用冒号来分隔不同的时间元素(时、分、秒),如“12:30:10”。
如果想在格式字符串中使用上述字符中的任意一种,则这些字符必须用引号引起来。例如:
ToText(DateTime(1995,10,12,13,20,22), "MM/dd/yy hh 'h' mm 'min' ss 'sec' ", 'am', 'pm') = "10/12/95 1 h 20 min 22 sec pm"



Business Objects,SAP 子公司
http://www.china.businessobjects.com/
支持服务
http://www.china.businessobjects.com/support/
Web 上的产品文档
http://support.businessobjects.com/documentation/