docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DateConverter

    UXML attribute converter for Date values.

    Inheritance
    object
    UxmlAttributeConverter<Date>
    DateConverter
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    UxmlAttributeConverter<Date>.FromString(string)

    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)
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)