PolymerElements / iron-elements

Core elements
47 stars 23 forks source link

Element request: iron-datetime #33

Closed abdonrd closed 6 years ago

abdonrd commented 8 years ago

Are there any plans to create an element to manage dates and time?

Something like this?

<iron-datetime></iron-datetime>
// Sun Jan 10 2016 19:02:04 GMT+0100 (CET)

<iron-datetime datetime="2016-01-01T10:00:00.182Z"></iron-datetime>
// Sun Jan 1 2016 10:00:00 GMT+0100 (CET)

<iron-datetime datetime="2016-01-01T10:00:00.182Z" format="YYYY-MM-DD"></iron-datetime>
// 2016-01-01
cdata commented 8 years ago

We are planning to build a datepicker eventually. The element you are proposing doesn't seem like it will be a datepicker, though. Can you go into more detail about the usecases for an iron-datetime element as you imagine it?

abdonrd commented 8 years ago

@cdata a very good example is the all the times in GitHub:

screen shot 2016-02-04 at 21 30 46 screen shot 2016-02-04 at 21 30 58 screen shot 2016-02-04 at 21 31 30
abdonrd commented 6 years ago

Closing very old issue...