In QGIS >2.18, is it possible to style features based on the age gap between the current date and date recorded in the attribute table. For instance I have purchased a significant amount of OS data for different mapping projects with an annual licence. I have a shapefile which hosts the extent of the purchase area and includes the expiry date for each licence/feature. I would like to apply a graduated style to the shapefile which will give me a visual indication if the licence for a particular area has expired or not. The shapefile can be loaded into QGIS from a spatialite database if it is necessary.
Just wondered if QGIS has the capability to run an expression based off the current date and update the styling every time the layer is loaded into the canvas.