Answers for "date = new date yyy mm dd"

2

js get date in yyyy-mm-dd

const yourDate = new Date()
yourDate.toISOString().split('T')[0]
Posted by: Guest on October-21-2021
0

Convert a date to yyyy mm dd format

const formatYmd = date => date.toISOString().slice(0, 10);
formatYmd(new Date());
Posted by: Guest on October-21-2020

Code answers related to "date = new date yyy mm dd"

Python Answers by Framework

Browse Popular Code Answers by Language