Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

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

K-LeeNov 1 2022

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);

Comments
Post Details
Added on Nov 1 2022
0 comments
157 views