Consider that the string is '2022-02-27T16:45:00-0500'
I need to display it as February 27, 2022, 04:45pm
I tried the following code
moment(dateString).format('MMMM D, YYYY, hh:mma')
But it is not returning the required value. Any idea on how to achieve this?