Compartilhar via


Propriedade do RDL Date

The Date property returns a Date data type.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Public Shared ReadOnly Property Date As DataType
    Get
'Uso
Dim value As DataType

value = DataType.Date
public static DataType Date { get; }
public:
static property DataType^ Date {
    DataType^ get ();
}
static member Date : DataType
static function get Date () : DataType

Valor da propriedade

Tipo: Microsoft.SqlServer.Management.Smo. . :: . .DataType
A DataType object value that specifies a Date definition in the data type.

Comentários

Returns date information that represents any valid Gregorian calendar date between 0001-01-01 and 9999-12-31.

Exemplos

Visual Basic

Dim dt As DataType
dt = New DataType(SqlDataType.Date)

PowerShell

$dt = new-object Microsoft.SqlServer.Management.Smo.DataType([Microsoft.SqlServer.Management.Smo.SqlDataType]::Date)