Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>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

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading