Skip to content

Support the new BCL DateOnly and TimeOnly structs #3617

Description

@roji

New DateOnly and TimeOnly structs are being introduced to .NET 6 as alternatives to DateTime (dotnet/runtime#49036).

Activity

  1. added this to the vNext milestone on Mar 25, 2021
  2. mattjohnsonpint commented on Apr 15, 2021

    @mattjohnsonpint

    Please note that the final names for these types are DateOnly and TimeOnly and that they are now merged into the main branch for the next version of .NET 6 (preview 4 likely). Please rename the title of this issue accordingly. Thanks.

  3. changed the title [-]Support the new BCL DateOnly and TimeOfDay structs[/-] [+]Support the new BCL DateOnly and TimeOnly structs[/+] on Apr 15, 2021
  4. self-assigned this
    on May 25, 2021
  5. added a commit that references this issue on May 26, 2021
    8097b28
  6. gojanpaolo commented on Dec 15, 2021

    @gojanpaolo

    Are there plans to support more DateOnly and TimeOnly members like dotnet/efcore#25103? Thanks!

  7. roji commented on Dec 15, 2021

    @roji
    MemberAuthor

    Which specific member are you missing? Most members are already translated.

  8. gojanpaolo commented on Dec 15, 2021

    @gojanpaolo

    DateOnly.FromDateTime
    e.g. we have failing query with .Where(_ => _.MyDateOnly == null || _.MyDateOnly > DateOnly.FromDateTime(DateTime.UtcNow))

  9. roji commented on Dec 15, 2021

    @roji
    MemberAuthor

    Opened #4217 to track, will try to get the trivial ones into 6.0.2.

  10. added theissue type on Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions