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 変換後の日付のフォーマット。
日付フォーマットの説明については、Ultra Light date_format 作成パラメーターを参照してください。
VARCHAR
string-expression には、許容される任意の日付フォーマットを使用できます。
SQL/2008 ベンダー拡張。
次の文は、値 Jan 01, 1989 を返します。
SELECT DATEFORMAT( '1989-01-01', 'Mmm dd, yyyy' );