You can achieve this by putting javascript something like below in the calculate event of the field whose border color need to change:
if(CallFunctionToCompareDateWhichReturnTrueOrFalse(putCurrentDate,DateofYourField)){this.border.edge.color.value="255,0,0";}else{this.border.edge.color.value="255,...