I am having an issue with working with the date field.
What I am trying to do is: I want to change the background color of the rows (records) on a data page if a date from that record is older than the current date (Timestamp). Please see my source code from the HTML block below.
It seems working if the date and the current date is from the same year. However, it is not working if the dates (record date and current date) are from two different years.
How can I solve this issue?
[@field:files_File_Number] <a id="visi[@field:actions_Action_ID]"> <script>
var isi = document.getElementById("visi[@field:actions_Action_ID]");
isi.parentNode.parentNode.style.backgroundColor = '#fcd4d4';
isi.parentNode.parentNode.style.backgroundColor = '#NoColor';