OnTime Extension SDK Documentation
OnTime.Extensions.SDK Namespace / UserDefinedFieldBase Class / ValueAsDate Property



In This Topic
    ValueAsDate Property
    In This Topic
    The value of this UserDefinedField as a System.DateTime.
    Syntax
    'Declaration
     
    
    <DataMemberAttribute(False)>
    <DisplayNameAttribute("Value as Date")>
    Public Property ValueAsDate As Date
    'Usage
     
    
    Dim instance As UserDefinedFieldBase
    Dim value As Date
     
    instance.ValueAsDate = value
     
    value = instance.ValueAsDate
    [DataMember(false)]
    [DisplayName("Value as Date")]
    public DateTime ValueAsDate {get; set;}
    [DataMember(false)]
    [DisplayName("Value as Date")]
    public:
    property DateTime ValueAsDate {
       DateTime get();
       void set (    DateTime value);
    }
    Remarks
    By default, this date is expressed in local time.
    Dates should be specified as Local or UTC by use of the System.DateTime.Kind property. Dates with the System.DateTime.Kind property not set (Unspecified) will be interpreted as UTC.
    Requirements

    Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11, Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019, Windows Server 2022

    See Also