[英]Luxon date formatting from object as moment does
How can I pass a string object inside a Luxon hours formatting?如何在 Luxon 小时格式中传递字符串对象?
var message = "2020-10-05 17:24:23.456354"
Kind of a: {DateTime(message).local().toFormat("HH:mm")}
一种:
{DateTime(message).local().toFormat("HH:mm")}
Which is not working.哪个不起作用。
In moment.js would be: {moment(message).format("HH:mm")}
在 moment.js 中:
{moment(message).format("HH:mm")}
{DateTime.fromISO(message).toFormat("HH:mm")}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.