Forum Stats

  • 3,875,385 Users
  • 2,266,909 Discussions
  • 7,912,189 Comments

Discussions

I am trying to change the color of the variable Expiration Date. I can't get pass the SPAN line'

K-Lee
K-Lee Member Posts: 2 Green Ribbon

daysDiff = 0;

if(priceExpirationDate_t <> "") {

return priceExpirationDate_t;

} else {

today = getdate(true);

expiredate = adddays(today, 90);

daysDiff = getdiffindays(expiredate,today);

print daysDiff;

}

if((daysDiff <=10) and (daysDiff > 5)){

<span style="color: #ff6600;"><strong>;


}

if((daysDiff ) <= 5) and (daysDiff >= 1)){

<span style="color: #ffff00;";>

return datetostr(expiredate);