function getFirstDayOfMonth(startDate) { // Split the startDate in DD/MM/YYYY format const parts = startDate.split(‘/’); // Extract the month and year const month = parts[0]; const… Continue reading Function to get the first of the month by passing a random Date