【发布时间】:2020-04-05 12:40:55
【问题描述】:
我有一个 15:12:00 (HH:MM:SS) 格式的时间。但我需要以(3.12 PM)格式更改它
<p class="headings" display-format="HH:mm" > <b>Time :</b> {{this.starttime}} </p>
在打字稿中
this.starttime = '15:12:00';
【问题讨论】:
-
我认为你应该使用momentjs。参考:stackoverflow.com/questions/48682405/…
-
你能有完整的日期时间对象还是只有时间字符串?
-
我不需要当前时间..我已经在字符串 @SuperBob 中有时间
-
只是时间字符串@Naseer
标签: html typescript datetime ionic-framework ionic3