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.taiwan.businessobjects.com/
支援服務
http://www.taiwan.businessobjects.com/support/
產品說明文件網站
http://support.businessobjects.com/documentation/