Yngvarr

Generation

generate functionThu, 22 Dec 2022

get name day to date

const getDay = (date) => { const days = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'] return days[date.getDay()] } getDay(new Date(2020, 10, 16))

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant