[Feature Request]: Date range picker date format customization

Đang mở
#2,210 3 bình luận 2 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
react, typescript

Hướng nghiên cứu

Start by reading the date range picker’s existing date-formatting behavior and its public API; the issue does not name files or tests. The request is to support formats such as yyyy MMM dd, but the interface for customization is unspecified, so clarify that design before implementation. Done means the date range representation can use a chosen format rather than only the current formats.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement
Problem Description

What we have and see now when whole system has date format as yyyy MMM dd, we have 3 different date formats what looks not quite well:

Screenshot 2024-04-30 121401

ISO format is not a solution when you want to have one date standard in your web application.

i.e. application could have by design date standard as: 2024 Jun 23 by date format yyyy MMM dd in this case.

Date range picker does not support this (no ISO standard for that). I looked in specification what ISO supported and there no short english version for month, but still if it is, the ISO is not a solution but a workaround solution.

en (English): January 22, 2024
en-GB (British English): 22 January 2024
de (German): 22 Jan 2024
es (Spanish): 22 ene 2024
fr (French): 22 janv. 2024
ja (Japanese): 2024年1月22日
it (Italian): 22 gen 2024
pt-BR (Brazilian Portuguese): 22 jan 2024
ko (Korean): 2024년 1월 22일
zh-CN (Simplified Chinese): 2024年1月22日
zh-TW (Traditional Chinese): 2024年1月22日
id (Indonesian): 22 Jan 2024
tr (Turkish): 22 Oca 2024

What expected in this feature request:

Would be great to have possibility to use different date formats for date range representation
ts example what could be used in your component.

format(parseISO(date), "yyyy MMM dd") <-- where possible to represent by format

Code of Conduct
Ngôn ngữ chính
TypeScript
Star
2.7k
Fork
248
Merge trung bình
2 ngày 19 giờ
Pull request đã merge (30 ngày)
90

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cloudscape-design/components

Tất cả issue của cloudscape-design/components

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.