_OlkTimeControl.Time Property

Returns or sets a DateTime that represents the time value currently selected in the control. Read/write.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Property Time As DateTime
    Get
    Set
'Usage
Dim instance As _OlkTimeControl
Dim value As DateTime

value = instance.Time

instance.Time = value
[DispIdAttribute()]
DateTime Time { get; set; }

Property Value

Type: System.DateTime

Remarks

The default value is Dec 30, 1899 12:00 AM.

When using the time control to indicate a duration (that is, the Style is olTimeStyleDuration), if the duration is longer than 24 hours, the Time property will indicate the duration from Dec 30, 1899 12:00 AM. For example, a duration spanning 24 hours will return a DateTime value of Dec 31 1899 12:00 AM. If this is a duration value for an appointment and you would like to determine an end time for the appointment, you can add this value to the ReferenceTime property value.

See Also

Reference

_OlkTimeControl Interface

_OlkTimeControl Members

Microsoft.Office.Interop.Outlook Namespace