This topic is locked
[SOLVED]

calculate licens expiry date with background color

7/3/2021 1:32:19 PM
PHPRunner General questions
S
Salaheddin author

Hi..
Im trying to calculate licens expiry date with background color, the field in my case is Emp _Tech_License END_Date, and second date is today date (Now), so the diffreens between the two dates must be in days and shoed in with colored background
thanks for your help in advance

T
tayyabilyas 7/4/2021

Hello,
In my view you can use before display event and calculate the number of days there something like expirtydate - current date & then use CSS code to change background color

https://xlinesoft.com/phprunner/docs/how_to_change_the_row_background_color.htm

https://asprunner.com/forums/topic/11361-changing-background-color-in-the-list-based-on-a-field-value/

S
Salaheddin author 7/5/2021

Thank you tayyabilyas for your help and replay