Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

discord js convert timestamp to date

const d = new Date( timestamp );
date = d.getHours() + ":" + d.getMinutes() + ", " + d.toDateString();
console.log( date );
// e.g. 17:44, Tue Jun 16 2020
 
PREVIOUS NEXT
Tagged: #discord #js #convert #timestamp #date
ADD COMMENT
Topic
Name
9+7 =