Snippets Collections
const date = '2021-06-14T08:29:40.886+00:00'
const formattedDate = date.substring(0,date.lastIndexOf('T'))
console.log(formattedDate)

// prints: "2021-06-14"

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension