Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Feature Request]: Date range picker date format customization

未关闭
#2,210 3 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
react, typescript

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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
主要语言
TypeScript
星标
2.7k
派生
248
平均合并
3 天 14 小时
30 天内合并 PR
83

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

cloudscape-design/components 的其他 Issue

查看 cloudscape-design/components 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。