I have a format of "Jan. 27, 2015 at 8:17 AM" that I need to display using moment.js. I'm using the format
moment.format('MMM. D, YYYY at h:mm A z');
Everything works great except for the word "at". How can I get that word to display as a word instead of the "a" in "at" being translated to the "am/pm". Right now using that date format it ends up looking like this: Jan. 27, 2015 amt 8:17 AM. Notice the "amt" instead of "at".
Is there any simple way of getting it to not process the "a" as part of the format? I have already tried splitting the output and manually entering the "at" after the third space but I'd like a cleaner code if possible.
Aucun commentaire:
Enregistrer un commentaire