# 日付ピッカーで月と年を選択できることをより明確にする

**URL:** <https://meta.discourse.org/t/make-it-clearer-that-you-can-select-month-and-year-in-date-picker/179149>\
**Category:** UX\
**Created:** [2021 年 2 月 10 日午前 2:13 UTC](https://meta.discourse.org/t/make-it-clearer-that-you-can-select-month-and-year-in-date-picker/179149 "2021-02-10T02:13:53Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)\
**Post date:** [2021 年 2 月 10 日午前 2:13 UTC](https://meta.discourse.org/t/make-it-clearer-that-you-can-select-month-and-year-in-date-picker/179149/1 "2021-02-10T02:13:53Z")

</div>

現在、管理者画面（`/admin/reports/signups`）の日付選択機能では、ポップアップカレンダーから日付を選択する必要があります。過去にさかのぼる日付を選ぶ場合、左矢印を月に 1 回ずつクリックして減らすのは非常に手間がかかります。10 年分であれば 120 回のクリックが必要です。

 ![Screen Shot 2021-02-09 at 5.59.46 PM](https://global.discourse-cdn.com/meta/original/3X/5/3/53f84f5482b81efe8879f680f9a3b3c79ee3742d.png)

望ましい、かつ期待される動作としては、日付フィールドに直接入力して年をタイプし、Enter キーを押せば結果が取得できることです。

ただし、Discourse は日付フィールド内の数字が 1 文字でも変更または削除されると、すぐに結果の取得を開始してしまいます。そのため、2021 の最後の数字を削除すると、202 年の結果を取得する処理が始まってしまいます。

 ![Screen Shot 2021-02-09 at 6.06.46 PM](https://global.discourse-cdn.com/meta/original/3X/5/9/5954fa9410d55849d52b433ba32e746aafec47a1.png)

回避策として、URL で日付を設定する方法もありますが、これでは日付選択機能の目的が損なわれてしまいます。

`/admin/reports/signups?end_date=2021-02-09&start_date=1998-01-08`

---

_[View the full topic](https://meta.discourse.org/t/make-it-clearer-that-you-can-select-month-and-year-in-date-picker/179149)._
