Creating a birthday reminder app has been my latest project, where I store names and birthdays in JSON format. My goal is to display the names sorted based on whose birthday is approaching next.
Initially, I considered calculating the time until each person's birthday by subtracting the current day and month from their birthday. However, this approach raised concerns about handling negative results and edge cases such as December. I'm hoping there might be a simpler solution out there that I haven't considered yet.
If you'd like to take a look at the base working code, here is a link to the plunkr: http://plnkr.co/edit/AkP6FRRG917TDdTtfWM7?p=preview