datetime - 如何在 angular-bootstrap-datetimepicker 中更改日期时间格式
问题描述
我是 Angular 新手,无法在日历模块中更改日期时间格式。我正在使用angular-bootstrap-datetimepicker
. 基本配置如下
<dl-date-time-picker
maxView="day"
minView="day"
startView="day"
minuteStep="5"
[(ngModel)]="selectedDate">
</dl-date-time-picker>
想要从(EEEE, MMMM d, y, h:mm:ss a zzzz)
格式更改为(yyyy/mm/dd)
格式
解决方案
我认为您正在尝试更改输入框中显示的日期格式 - 使用https://dalelotts.github.io/angular-bootstrap-datetimepicker/directives/DlDateTimeInputDirective.html
推荐阅读
- java - 使用不同的对象优化循环Java
- java - Branch.io (Android SDK) 和 GDPR
- mysql - 将删除的数据保留在其他表中
- php - 在刀片文件上使用 Poedit
- vba - 将多个文本文件导入单个工作表
- sas - 识别触发事件后的第一次发生
- android - 基于存储在 Firebase 生成的实例 ID 下的 lastMessageKey 的时间戳值排列 RecyclerView 项目的 Firebase 查询
- android - 图片不能在 iPhone 上使用,但它们可以在 Android 上使用?
- javascript - 当包裹在 "$(document).ready(function () {" 中时,Bootstrap selectpicker 会出错
- asp.net-mvc - 将 x509 证书上传到 Azure ADD 或 Microsoft 注册门户上的应用程序清单