DateTimeBehaviorConversionRule Class
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
Represents a conversion rule for converting date and time value from UTC to DateOnly in the database.
Namespace: Microsoft.Xrm.Sdk
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
Inheritance Hierarchy
System.Object
Microsoft.Xrm.Sdk.Metadata.ConstantsBase<T>
Microsoft.Xrm.Sdk.DateTimeBehaviorConversionRule
Syntax
public sealed class DateTimeBehaviorConversionRule : ConstantsBase<string>
Public NotInheritable Class DateTimeBehaviorConversionRule
Inherits ConstantsBase(Of String)
Constructors
Name | Description | |
---|---|---|
DateTimeBehaviorConversionRule() | Initializes a new instance of the DateTimeBehaviorConversionRule class. |
Properties
Name | Description | |
---|---|---|
ExtensionData | (Inherited from ConstantsBase<T>.) |
|
Value | (Inherited from ConstantsBase<T>.) |
Methods
Name | Description | |
---|---|---|
Equals(Object) | Determines whether the specified instance of DateTimeBehaviorConversionRule is equal to the current instance.(Overrides Object.Equals(Object).) |
|
GetHashCode() | Returns a hash code for this instance.(Overrides Object.GetHashCode().) |
|
GetType() | (Inherited from Object.) |
|
ToString() | (Inherited from Object.) |
Fields
Name | Description | |
---|---|---|
CreatedByTimeZone | Converts UTC value to a DateOnly value that the user who created the record would see in the UI. |
|
LastUpdatedByTimeZone | Converts UTC value to a DateOnly value that the user who last updated the record would see in the UI. |
|
OwnerTimeZone | Converts UTC value to a DateOnly value that the user who owns the record would see in the UI. |
|
SpecificTimeZone | Converts UTC value to a DateOnly value as per the time zone code specified in the ConvertDateAndTimeBehaviorRequest.TimeZoneCode parameter. |
Operators
Name | Description | |
---|---|---|
Equality(DateTimeBehaviorConversionRule, DateTimeBehaviorConversionRule) | Indicates whether two DateTimeBehaviorConversionRule instances are equal. |
|
Implicit(String to DateTimeBehaviorConversionRule) | Converts a string into a DateTimeBehaviorConversionRule |
|
Inequality(DateTimeBehaviorConversionRule, DateTimeBehaviorConversionRule) | Indicates whether two DateTimeBehaviorConversionRule instances are not equal. |
Thread Safety
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.Xrm.Sdk Namespace
Behavior and format of the date and time attribute
Sample: Convert date and time behavior
Return to top
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright