DynamicContextSettings.CurrentDateTime PropertyDynamicContextSettings.CurrentDateTime PropertyDynamicContextSettings::CurrentDateTime Property

Gets or sets the current date and time.

Syntax

Public Property CurrentDateTime As Nullable(Of DateTimeWithZone)
        Get
        Set(ByVal value As Nullable(Of DateTimeWithZone))
public Nullable<DateTimeWithZone> CurrentDateTime { get; set; }
public:
property Nullable<DateTimeWithZone> CurrentDateTime {
    Nullable<DateTimeWithZone> get();
    void set(Nullable<DateTimeWithZone> value);
}
 

Property Value

Type: System.Nullable<T>System.Nullable(Of T)System::Nullable<T>

A nullable DateTimeWithZoneDateTimeWithZoneDateTimeWithZone value representing the current date and time. If this value is null a null reference (Nothing in Visual Basic) nullptr then the current date and time will be the time when evaluation was started.

Remarks

The current date and time is the date and time that will be returned by the fn:current-date, fn:current-time and fn:current-dateTime functions. It is however first adjusted to the implicit time zone.

By default CurrentDateTimeCurrentDateTimeCurrentDateTime is set to null a null reference (Nothing in Visual Basic) nullptr and the current date and time will be set to the time when evaluation is started.