Does anyone know how to compare yesterdays date in population?

I want to compare yesterday's date to the dtlastmodfy in AssetManager by using the AM population.

The population groovy is where I want to compare yesterdays date to dtlastmodfy in Asset Manager.

Anyone have some code examples?