DateTimeField class
namespace: Serenity.Data assembly: Serenity.Net.Entity
Field with a DateTime value
public sealed class DateTimeField : GenericValueField<DateTime>
Public Members
| name | description |
|---|---|
| DateTimeField(…) | Initializes a new instance of the DateTimeField class. |
| static Factory(…) | Static factory for field, for backward compatibility, avoid using. |
| DateOnly { get; set; } | Gets or sets a value indicating whether the field is date only, e.g. no time part. |
| DateTimeKind { get; set; } | Gets or sets the kind of the date time. Unspecified means no date/time conversions, Local means local time zone, Utc means UTC time zone |
| Item { get; set; } | Gets or sets the value of this field with the specified row. |
| override AsObject(…) | Gets the value of this field in specified row as object. (2 methods) |
| override ConvertValue(…) | Converts the value. |
| override GetFromReader(…) | Gets field value from a data reader. |
| override ValueFromJson(…) | Deserializes this fields value from JSON |
| override ValueToJson(…) | Serializes this fields value to JSON |
| static ToDateTimeKind(…) | Converts the value to specified DateTimeKind (2 methods) |
See Also
- class GenericValueField<TValue>
- Source: DateTimeField.cs