DateTimeKindAttribute class
namespace: Serenity.Data assembly: Serenity.Net.Services
Determines Time kind for a DateTime field.
[AttributeUsage(AttributeTargets.All)]
public class DateTimeKindAttribute : Attribute
| parameter | description |
|---|---|
| value | The value. If Unspecified, it means this is a DateTime field but no time zone conversions should be done. Local means dates should be converted to server local time. Utc means dates should be converted to UTC timezone. |
Public Members
| name | description |
|---|---|
| DateTimeKindAttribute(…) | Determines Time kind for a DateTime field. |
| Value { get; } | Gets the value. |
Remarks
Initializes a new instance of the DateTimeKindAttribute class.
See Also
- Source: DateTimeKindAttribute.cs