Ever wanted to know what numerical "day of the year" a date falls on (e.g., January 31st is day 31, but February 1st is day 32)? We can do this easily by subtracting January 1st from our target date and converting milliseconds into days! JavaScript function dayOfTheYear(date) { const year = date.getFullYear(); // Get January 1st of that exact year const startOfYear = new Date(year, 0, 1); // Find the difference in milliseconds const diffTime = date.getTime() - startOfYear.g...