convert

Converts the specified value to another datatype or a different datetime display format.

Syntax

convert (datatype [(length) | (precision[, scale])] 
	[null | not null], expression [, style])

Parameters

Examples

Standards

ANSI SQL – Compliance level: Transact-SQL extension.

Permissions

Any user can execute convert.