Class DateTimeUnspecifiedPropertyEditor
Represents a property editor for editing an unspecified date/time value.
Namespace: Umbraco.Cms.Core.PropertyEditors
Assembly: Umbraco.Infrastructure.dll
Syntax
[DataEditor("Umbraco.DateTimeUnspecified", ValueType = "JSON", ValueEditorIsReusable = true)]
public class DateTimeUnspecifiedPropertyEditor : DateTimePropertyEditorBase, IDataEditor, IDiscoverable, IValueSchemaProvider
Remarks
This is one of four property editors derived from DateTimePropertyEditorBase and storing their value as JSON with timezone information.
Constructors
View SourceDateTimeUnspecifiedPropertyEditor(IDataValueEditorFactory, IIOHelper, IDateTimeUnspecifiedPropertyIndexValueFactory)
Initializes a new instance of the DateTimeUnspecifiedPropertyEditor class.
Declaration
public DateTimeUnspecifiedPropertyEditor(IDataValueEditorFactory dataValueEditorFactory, IIOHelper ioHelper, IDateTimeUnspecifiedPropertyIndexValueFactory propertyIndexValueFactory)
Parameters
| Type | Name | Description |
|---|---|---|
| IDataValueEditorFactory | dataValueEditorFactory | Factory for creating data value editors for property values. |
| IIOHelper | ioHelper | Helper for IO operations, such as path and file handling. |
| IDateTimeUnspecifiedPropertyIndexValueFactory | propertyIndexValueFactory | Factory for creating index values for date/time properties with unspecified kind. |
Methods
View SourceMapDateToEditorFormat(DateTimeDto)
Converts the specified date and time value to a string formatted for use in the property editor.
Declaration
protected override string MapDateToEditorFormat(DateTimeValueConverterBase.DateTimeDto dateTimeDto)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTimeValueConverterBase.DateTimeDto | dateTimeDto | An object containing the date and time components to be formatted. |
Returns
| Type | Description |
|---|---|
| string | A string representation of the date and time, formatted for use in the property editor. |