Table Dashboard color code

Hi,

I have created the Tabular Dashboard on elastic. Table data having fields called certificate name , valid from date ,valid To Date. we want to change the color code of Valid To Date ,if the certificate expiring within two months automatically i.e . Valid To Date data suppose to be changed to different colours.
How to apply the various color codes to the fields data automatically.