Answers for "js transform date yyyy-mm-dd to string"

2

javascript format date yyyy-mm-dd

// yyyy-mm-dd
new Date().toISOString().slice(0, 10)
Posted by: Guest on March-29-2021
0

reverse date javascript from yyyy/mm/dd to dd/mm/yyyy

function convertDigitIn(str){
   return str.split('/').reverse().join('/');
}
Posted by: Guest on July-05-2021

Code answers related to "js transform date yyyy-mm-dd to string"

Code answers related to "Javascript"

Browse Popular Code Answers by Language