React Obtenha data atual aaaaa-mm-dd

let date=new Date().toISOString().split("T")[0]
MR. D