【问题标题】:Angular datetime-local 24hrs formatAngular datetime-local 24hrs 格式
【发布时间】:2016-12-23 10:18:31
【问题描述】:

可以在 angular input[datetime-local] 组件中使用 24hrs 格式吗? (https://docs.angularjs.org/api/ng/input/input%5Bdatetime-local%5D)

我可以使用 ngMOdelOptions 将时区设置为 UTC,但时间一直显示 AM/PM

谢谢

【问题讨论】:

  • 这可能与 AngularJS 无关;它使用浏览器的the input type="datetime-local" 实现,它不允许格式化。
  • 是的,很遗憾没有,感谢您的回复

标签: angularjs datetimepicker datetime-format


【解决方案1】:

您可以在Convert 24 hours time variable into 12Hours time with AngularJS/jQuery 上找到答案。 你可以在这里阅读更多内容,Format Date time in Angular JS,也可以在这里阅读,https://docs.angularjs.org/api/ng/filter/date

【讨论】:

  • „您可以在 (...) 上找到答案“这是您应该给出答案的答案而不是链接的网站。 -1
猜你喜欢
  • 2020-11-15
  • 2015-12-14
  • 1970-01-01
  • 1970-01-01
  • 2020-10-27
  • 2018-01-14
  • 2020-02-08
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多