Format time zone

How do i remove the EDT GMT-04:00 from this time command

!addcom -cd=5 time $(time US/Eastern “MMMM Do YYYY, h:mm:ss A”)

I want it to show the day, month & time only like this

Sunday March 21st 2021, 6:48:43 am

Hey @Tezi!

You’re using the wrong quotation marks… Use " instead of “”:

$(time US/Eastern "MMMM Do YYYY, h:mm:ss A")

But this would show the date like March 21st 2021, 6:48:43 AM, by following the documentation, that’s how you should go about it to get the result you want:

$(time US/Eastern "dddd MMMM Do YYYY, h:mm:ss a")
1 Like

I’m still having the same problem

You must make a mistake when you copy/paste and it changes the quotation marks I guess, because it works just fine on my side:
72SGjOSbuK

1 Like

Got it to work Thank You Emily!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.