switch last modified date logic