DMY Function (DateTime)
|
|
从日期或日期时间表达式返回以"日-月-年"格式的字符表达式(例如,31 May 1998)。月份名称不缩写。
命名空间:
XSharp.VFP
程序集:
XSharp.VFP (在 XSharp.VFP.dll 中) 版本:2.24 GA
Syntax FUNCTION DMY(
tExpression AS DateTime
) AS STRING
public static string DMY(
DateTime tExpression
)
Request Example
查看代码Parameters
- tExpression
- 类型:DateTime
指定 DMY( ) 从中返回以"日-月-年"格式的字符字符串的日期时间表达式。
Return Value
类型:
String
字符
备注
如果 Set CENTURY 为 OFF,DMY( ) 返回以 "dd-Month-yy" 格式的字符字符串(例如,16 February 98)。
如果 Set CENTURY 为 ON,格式为 "dd-Month-yyyy"(例如,16 February 1998)。
Examples1Clear
2Set CENTURY OFF
3? DMY(DATE( ))
4Set CENTURY ON
5? DMY(DATE( ))
See Also