Skip to content

hourCycle, dateStyle and timeStyle missing from interface Intl.ResolvedDateTimeFormatOptionsΒ #42577

Closed

Description

@flip-it

Bug Report

πŸ”Ž Search Terms

Intl
DateTimeFormat
ResolvedDateTimeFormatOptions
hourCycle

πŸ•— Version & Regression Information

4.1.3

⏯ Playground Link

Playground link with relevant code

πŸ’» Code

const { hour12, hour, hourCycle, dateStyle, timeStyle } = new Intl.DateTimeFormat('en-US', {
    hour: 'numeric',
}).resolvedOptions()

πŸ™ Actual behavior

Property 'hourCycle' does not exist on type 'ResolvedDateTimeFormatOptions'.
Property 'dateStyle' does not exist on type 'ResolvedDateTimeFormatOptions'.
Property 'timeStyle' does not exist on type 'ResolvedDateTimeFormatOptions'

πŸ™‚ Expected behavior

To be able to use all properties in Resolved Options of DateTimeFormat Instances defined in https://tc39.es/ecma402/#table-datetimeformat-resolvedoptions-properties

Activity

  1. MartinJohns commented on Feb 1, 2021

    @MartinJohns
    Contributor

    Duplicate of #35865 / #34399.

  2. typescript-bot commented on Feb 4, 2021

    @typescript-bot
    Contributor

    This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.

  3. locked as resolved and limited conversation to collaborators on Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions