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 には、許容される任意の日付形式を使用できます。
次の文は、値 Jan 01, 1989 を返します。
SELECT DATEFORMAT( '1989-01-01', 'Mmm dd, yyyy' );