Hi All
I am hoping you can help me answer this. I have some dates stored in a table. I store each part separately.
myTable[i].dateday = datetime.day myTable[i].datemonth = datetime.month myTable[i].dateyear = datetime.year myTable[i].timehour = datetime.hour myTable[i].timemin = datetime.min
What I cannot seem to work out is how on earth I take a date and deduct a number from it.
So I want to see the records from the last 7 days.
I cant just take the system day and deduct 7 days, or can I?
From what I am reading, I have to create a time stamp and use that. This seems to me to be very long winded for something as simple as deducting days from a date.
I see from some other posts, I am not the only one who has struggled with this.
Thanks for the help.
Dale