Skip to content

Add DateOnly and TimeOnly support to model binding & routing #34591

Closed
@pranavkm

Description

@pranavkm
  • Required for Blazor/MVC
    • Model Binding
      Blazor Routing
      Regular Routing

Activity

added
area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templates
and removed on Jul 21, 2021
ghost

ghost commented on Jul 21, 2021

@ghost

Thanks for contacting us.

We're moving this issue to the Next sprint planning milestone for future evaluation / consideration. We would like to keep this around to collect more feedback, which can help us with prioritizing this work. We will re-evaluate this issue, during our next planning meeting(s).
If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact issues.
To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.

davidfowl

davidfowl commented on Jul 23, 2021

@davidfowl
Member

I want to mention that the TryParse heuristic that we added in minimal API means we support these out of the box 😄

pranavkm

pranavkm commented on Jul 23, 2021

@pranavkm
ContributorAuthor

Hmm, your comment reminded me that we want to special case DateTime. The default DateTime.Parse (and I imagine DateTime.TryParse), formats the date to a server local time. We had to author a model binder in MVC to parse it as UTC. @DamianEdwards did some research on this: #11584 (comment)

ghost

ghost commented on Aug 12, 2021

@ghost

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

changed the title [-]Add DateOnly and TimeOnly support to model binding (Mvc)[/-] [+]Add DateOnly and TimeOnly support to model binding & routing[/+] on Aug 23, 2021

40 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Priority:1Work that is critical for the release, but we could probably ship withoutarea-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-model-binding

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @davidfowl@pranavkm@DamianEdwards@SteveSandersonMS@danroth27

      Issue actions

        Add DateOnly and TimeOnly support to model binding & routing · Issue #34591 · dotnet/aspnetcore