Sorry, but am not a java coder but am trying to do functions based on the calendar date.
Have found various codes and snippets, but looking for a way to filter a dataset on a page using for a current date (month and day are important, not year).
Have found the onready and filtering code but need an easy way to convert for comparison purposes the only representations I have within my databases of dates. I store dates as text and numbers in fields as follows:
Date - a text field
MONTH - a number field
DAY a number field
for this example.
I have uploaded code onto the page of interest:
let today = new date();
But clearly the format returned from date() is not in a good form to compare what I store.
But am lost in trying to get an easy way to compare dates as strings or numbers or whatever.
Any suggestions for what surely must be a problem solved a million times before?
Thank you for any assistance on this.
P.S. Also, can't figure out how to print things to the console for debugging. The console.log thing does not show anything.