Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Object doesn't support property or method 'formatToParts' #35

Open
ellioseven opened this issue Jul 22, 2019 · 3 comments
Open

Object doesn't support property or method 'formatToParts' #35

ellioseven opened this issue Jul 22, 2019 · 3 comments

Comments

@ellioseven
Copy link

ellioseven commented Jul 22, 2019

I am trying to do the following:

const date = new Date()
new Intl.DateTimeFormat("en", {
  timeZone: "en",
  weekday: 'long',
  year: 'numeric',
  month: 'numeric',
  day: 'numeric',
  hour: 'numeric',
  minute: 'numeric',
  second: 'numeric',
  hour12: true
}).formatToParts(date)

However, I am getting the following in IE11:

Object doesn't support property or method 'formatToParts'

Am I missing something here? I can see from the previous issues that this is/was suppported.

@ahopkins94
Copy link

hi I am getting the same error, any updates on this?

@Sushindhran
Copy link

I'm seeing this too. Did you figure out how to fix this?

@markandey
Copy link
Collaborator

Hi Guys
This polyfill does not formatToParts
We will remove the half baked support we have as of now.

This support only works if you use intl polyfill, or if your browser supports

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants