I have had a look all over, but it doesn’t seem as though my required coding is addressed anywhere.
Please note that the “interval” variable does NOT work for me. Please use the current code, which works well to show all dates in CURRENT week.
The code below splits all dates in the current week out, but how do I adjust this to split out the prior week? (Sun to Sat)
IF(FROM_UNIXTIME(renprop_commercial_new.tstamp, "%U") = FROM_UNIXTIME(UNIX_TIMESTAMP(NOW()),"%U"),1,0)
I have tried adding a minus 7 (for days) behind the “%U”, but it causes the script to be positive for every date.
Any ideas?
Deduct
1209600(twice the number of seconds in a week) fromNOW().Alternatively, you can use
DATE_SUB():