DateAndTime.Now Özellik

Tanım

Sisteminize göre geçerli tarih ve saati içeren bir değer döndürür.

public:
 static property DateTime Now { DateTime get(); };
public static DateTime Now { get; }
member this.Now : DateTime
Public ReadOnly Property Now As DateTime

Özellik Değeri

DateTime

Sisteminize göre geçerli tarih ve saat.

Örnekler

Aşağıdaki örnek, geçerli sistem tarih ve saatini döndürmek için özelliğini kullanır Now .

Dim ThisMoment As Date
' The following statement calls the Get procedure of the Visual Basic Now property.
ThisMoment = Now

Açıklamalar

Sistem tarihini ayarlamak için özelliğini kullanın Today . Sistem saatini ayarlamak için özelliğini kullanın TimeOfDay .

Şunlara uygulanır

Ayrıca bkz.