Date Range Filter

Date Range Filter

WaterLoverWaterLover Posts: 1Questions: 1Answers: 0

I've got a family tree website and I'd like to show "What happened in the family on today's date". More specifically, if today's April 2, 2018, I want to show my family everything that's happened in the family on April 2nd (of any year).

I'm using the DataTable script from Allan on Plunker which displays everything in the list that occurred on or after the "From" date entered. But I only want to show everything that's occurred on the current day (Month and Day) regardless of Year.

Is there an easy way I can adjust the code to accomplish this?

Also, I'd like to do away with the "From Date" input and automatically show the list based on today's date received from the computer. How would I go about this? I'm trying to get to: computer's date is 4/2/2018 so I'll convert it to 0402 and find all entries in my table with an April 2nd (0402) date and display those records. How would I go about doing that?

Thanks in advance for any help. I'm a novice at this but would very much like to incorporate this functionality into my family tree website.

Answers

This discussion has been closed.