Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can someone explain exactly what each of the above refers to when talking about assets? In particular, the difference between dateModified and dateUpdated.

share|improve this question
up vote 7 down vote accepted

dateCreated and dateUpdated are pretty standard columns that you can find in pretty much every Craft database table. They store the date in which the row was created and last updated, respectively.

dateModified is an assets-specific thing, and that stores the time that the file was last modified, according to the file system.

share|improve this answer
Thanks. So dateUpdated is the attribute to order by if I want to produce a list of 'new' assets? – Bruce Johnson Jul 27 '14 at 16:29
@BruceJohnson Probably dateCreated, since dateUpdated will get updated whenever you make changes on your asset’s metadata. – Brandon Kelly Jul 28 '14 at 0:02
I should have mentioned it before but that's exactly the behaviour I'm looking for. I want the most "newly updated" assets, if you like. – Bruce Johnson Jul 28 '14 at 0:42
In that case dateUpdated is the way to go! – Brandon Kelly Jul 28 '14 at 2:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.