score:2

Accepted answer
{moment.utc(comment.created_at).local().format('h:mm a')}

score:0

moment.utc('2022-02-11 17:41:39').local().format('YYYY-MM-DD HH:mm:ss')

score:1

<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js"></script>

Related Query

More Query from same tag