Class DateConverter
UXML attribute converter for Date values.
Inherited Members
Namespace: Unity.AppUI.Editor
Assembly: Unity.AppUI.Editor.dll
Syntax
public class DateConverter : UxmlAttributeConverter<Date>
Methods
FromString(string)
Converts a UXML attribute value into a Date.
Declaration
public override Date FromString(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | The attribute value to convert. |
Returns
| Type | Description |
|---|---|
| Date | The converted date, or the default date if the value is empty or cannot be parsed. |
Overrides
ToString(Date)
Converts a Date into its UXML attribute representation.
Declaration
public override string ToString(Date value)
Parameters
| Type | Name | Description |
|---|---|---|
| Date | value | The date to convert. |
Returns
| Type | Description |
|---|---|
| string | The date formatted using the invariant culture. |
Overrides
UnityEditor.UIElements.UxmlAttributeConverter<Unity.AppUI.Core.Date>.ToString(Unity.AppUI.Core.Date)