DateTimeField class
namespace: Serenity.Data assembly: Serenity.Net.Services
Field with a DateTime value.
public sealed class DateTimeField : GenericValueField<DateTime>
| parameter | description |
|---|---|
| collection | The collection. |
| name | The name. |
| caption | The caption. |
| size | The size. |
| flags | The flags. |
| getValue | The get value. |
| setValue | The set value. |
Public Members
| name | description |
|---|---|
| DateTimeField(…) | Field with a DateTime value. |
| 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(…) | Sets the value of this field in specified row as object. |
| override ConvertValue(…) | Converts the value. |
| override GetFromReader(…) | Gets field value from a data reader. |
| ToDateTimeKind(…) | Converts the value to this field's DateTimeKind. (2 methods) |
| override ValueFromJson(…) | Deserializes this field's value from JSON. (2 methods) |
| override ValueToJson(…) | Serializes this field's value to JSON. (2 methods) |
| static ToDateTimeKind(…) | Converts the value to the specified DateTimeKind. (2 methods) |
Remarks
Initializes a new instance of the DateTimeField class.
See Also
- class GenericValueField<TValue>
- Source: DateTimeField.cs