0

How can I do this?

I want to add the birthday in that calander in that specific year, for example the bday date is 2-2-2001 so I add this in 2001 year and I want it will show that event in that date in every year now in next year 2022 it will show me that event in that day 2-2-2022, so how I should do that? This is code - https://code.sololearn.com/WNqJ6zJakUn3

14th Nov 2021, 7:56 AM
Gayatri Dunakhe
Gayatri Dunakhe - avatar
4 Réponses
0
im getting a security error.
14th Nov 2021, 8:15 AM
ACE
ACE - avatar
0
Ok
14th Nov 2021, 8:16 AM
Gayatri Dunakhe
Gayatri Dunakhe - avatar
0
You need a for loop to generate new date string. For example, for(let i = 2022; i < 2100; i++){ newDateString = "" + i + "0202"; // add new date to the data object/array }
14th Nov 2021, 10:00 AM
Gordon
Gordon - avatar
0
Ok
14th Nov 2021, 10:01 AM
Gayatri Dunakhe
Gayatri Dunakhe - avatar