Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
返回以指定格式表示日期表达式的字符串。
DATEFORMAT( datetime-expression, string-expression )
datetime-expression 要转换的日期时间。
string-expression 转换后的日期格式。
有关日期格式说明的信息,请参见UltraLite date_format 创建参数。
VARCHAR
任何允许的日期格式都可用于字符串表达式。
SQL/2008 服务商扩充。
以下语句返回值 Jan 01, 1989。
SELECT DATEFORMAT( '1989-01-01', 'Mmm dd, yyyy' );