reactjs - 更改日视图的 fullCalendar 标题日期格式
问题描述
我想更改显示在日历上方的日期格式。
https://codesandbox.io/s/2z6wp2jozn?file=/src/DemoApp.jsx
当您选择日视图时,您可以看到December 21, 2020
。
我想更改日期的格式并显示Monday, 21.12
解决方案
你必须使用views
道具
<FullCalendar
views={{
day: {
titleFormat: { month: 'numeric', day: 'numeric', weekday: 'long' },
},
}}
/>
推荐阅读
- java - 对数组进行平方和排序的时间复杂度
- python - 如何在 PyCharm 替换功能中使用正则表达式占位符
- flutter - 如何使用 Dart 编辑 mp4 音频
- scala - Scala反射通过宇宙应用获取列表字段值
- c# - WPF、Excel 和 ContextMenu
- javascript - 使用 Node.Js 的 Lambda 函数
- python-3.x - Pandas 聚合 - 计算 x 上的值
- html - 边距只影响宽度而不影响顶部
- kvm - 无法启动 ubuntu18 kvm guest
- google-sheets-api - google docs /pub?...output=csv 不再有 CORS 标头