Class DateTimeConfiguration
Represents the configuration for the datetime value editor.
Inheritance
System.Object
Namespace: Umbraco.Core.PropertyEditors
Assembly: Umbraco.Core.dll
Syntax
public class DateTimeConfiguration
Constructors
View SourceDateTimeConfiguration()
Declaration
public DateTimeConfiguration()
Properties
View SourceFormat
Declaration
[ConfigurationField("format", "Date format", "textstring", Description = "If left empty then the format is YYYY-MM-DD. (see momentjs.com for supported formats)")]
public string Format { get; set; }
Property Value
Type | Description |
---|---|
System.String |
OffsetTime
Declaration
[ConfigurationField("offsetTime", "Offset time", "boolean", Description = "When enabled the time displayed will be offset with the server's timezone, this is useful for scenarios like scheduled publishing when an editor is in a different timezone than the hosted server")]
public bool OffsetTime { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |