I am trying to get this format with moment.js library
01/24/2022 10:14 PM GMT-0500
but I still don't know how to put "GMT" before it in time...
This is what I am trying:
// datetime es la fecha en formato tiempo
moment(new Date(dateTime)).format('MM/DD/yyyy hh:mm A Z');
and what I get is : 01/24/2022 10:14 PM -05:00
hello I think you could use this configuration
the result for me was
01/24/2022 10:51 PM GMT-0500