How to get the the createdAt timestamp without 'GMT+0000 (Coordinated Universal Time)'?

I have searched everywhere for this but I haven’t got the right answer. I just want to set it without the CUT time.

{name: "Registered:", value: `${user.createdAt}`},
{name: "Joined:", value: `${message.guild.joinedAt}`}

It currently shows up like this:
click here to see.

Is there any way to remove it?

>Solution :

Yes it’s possible to remove it

   {name: "Registered:", value: `${user.createdAt.toDateString()}`},
   {name: "Joined:", value: `${message.guild.joinedAt.toDateString()}`}

You should to add toDateString() to avoid the GMT or CUT time

Leave a Reply