Parses a date input value (YYYY-MM-DD format) to a Date using local components. Avoids timezone issues by constructing Date with local date components.

  • Parameters

    • value: null | string

      Date string in YYYY-MM-DD format (or empty string)

    Returns null | Date

    Date object or null if value is empty