components icon indicating copy to clipboard operation
components copied to clipboard

Make year selectable in date picker

Open mschering opened this issue 9 years ago • 35 comments

Bug, feature request, or proposal:

feature request

What is the expected behavior?

The year should be selectable from a dropdown list.

What is the current behavior?

The year can only be changed with the previous and next button.

What are the steps to reproduce?

See demo: https://material.angular.io/components/datepicker/examples

What is the use-case or motivation for changing an existing behavior?

Entering birthdays is very cumbersome. You have to click previous a lot for old people :)

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Material 2.0

mschering avatar Jul 18 '17 14:07 mschering

Awesome! It would be great to have time picker as well.

naveedahmed1 avatar Oct 31 '17 17:10 naveedahmed1

mmalerba , Any news for us yet with regards to this?

RichardBoyder avatar Nov 07 '17 06:11 RichardBoyder

They just released v5.0.0 RC and there was no mention of this in it. I removed the picker from my app personally and use something else as it was not usable in the current state.

I understand that there is a lot to do though so thanks for taking care of this none the less :)

Lakston avatar Nov 07 '17 08:11 Lakston

agreed. The work these guys have done is awesome. We will be patient then.

RichardBoyder avatar Nov 07 '17 08:11 RichardBoyder

@mschering how are you using datepicker for birthdate? the ouput is in utc so the date will differ based on your server location.

ankitraonka avatar Nov 14 '17 19:11 ankitraonka

+1

vividpixel avatar Dec 07 '17 11:12 vividpixel

+1

harudragneel avatar Dec 21 '17 11:12 harudragneel

+1

gogakoreli avatar Dec 21 '17 12:12 gogakoreli

This is by far the longest-living and the most ignored P1 bug. How did Material even get released without this fixed...? And now it just seems abandoned. What's going on, guys?

vitaly-t avatar Dec 23 '17 20:12 vitaly-t

@vitaly-t, it's not abandoned. This feature has already been implemented and will probably be available in the next minor release: #8565

julianobrasil avatar Dec 23 '17 20:12 julianobrasil

how to solve this issue?

ahmadsolehin avatar Feb 06 '18 13:02 ahmadsolehin

Upgrade material to the latest version.

julianobrasil avatar Feb 06 '18 13:02 julianobrasil

Is it possible to go from e.g. month mode, and the period saying 'May 2018' to 'year mode' and the period saying '2018', then clicking '2018' takes you to multi year mode?

Benno007 avatar May 17 '18 02:05 Benno007

@Benno007, I'm afraid there isn't such feature. Maybe an @Output() that emits when the user clicks on the period button is enough (as you can just close and reopen the calendar in the desired mode). You can open a new issue requesting for this feature.

julianobrasil avatar May 17 '18 16:05 julianobrasil

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.