js current date formatted code example Example: js date now format new Date().toJSON() // "2021-01-12T01:06:54.747Z"