Answers for "formatd moongodb createdAt"

0

formatd moongodb createdAt

date =  new Date('Thu Dec 29 2011 20:14:56 GMT-0600 (CST)')

date.toDateString() // "Thu Dec 29 2011"
date.toUTCString()  // "Fri, 30 Dec 2011 02:14:56 GMT"
date.getMonth()     // 11
date.getDate()      // 29
date.getFullYear()  // 2011
Posted by: Guest on April-19-2021

Browse Popular Code Answers by Language