i have an angular poject , i want to get the date of now just ( year - month - day ) , so i declared a variable type Date():
PaiementTime = new Date().toLocaleDateString()
this instruction gives me the date with format ('dd/mm/yyyy'), so how can i change the formt to ('yyyy-mm-dd')