Thanks for your suggestions. I eventually found a simple solution to me: EXPRESSION ("[datinter]" ~ '^2016') -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Get-current-year-in-a-CLASS-EXPRESSION-mapfile-tp5257968p5258031.html Sent from the Mapserver - User mailing list archive at Nabble.com.