Skip to content

DatePicker and DateRangePicker assign date-only to FormControl #31939

@zehavibarak

Description

@zehavibarak

Feature Description

Add getAssignValue(value: D) : any to DateAdapter.

This will enable returning a value other than date object. For example, string in YYYY-MM-DD format.

Use Case

Commonly, user selects a date with the intent of a date-only value. Date picker (and date range picker) returns date object in local time zone, which may reflet a date portion other than the one selected (adding or subtracting 1 day).

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureThis issue represents a new feature or feature request rather than a bug or bug fixneeds: clarificationThe issue does not contain enough information for the team to determine if it is a real bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions