Sort by month

Started by Mees Dekker, September 24, 2017, 12:25:52 PM

Previous topic - Next topic

Mees Dekker

I'm looking for a simple way to group my files (in my entire database) by month.

The timeline is a useful tool, but it groups files first in year-batches. But what I'm looking for, are all images taken in January, February, etc , irrespective the year they were taken in.

Can somebody point me in the right direction (i.e. data-driven categories, but then specifically how to do this)?

Mees

sinus

First though:

something like this:
{File.MD.XMP::exif\DateTimeOriginal\DateTimeOriginal\0|substr:3,2}

depends on the field, where the dates are in.
Try this for example with data-driven cats.
Best wishes from Switzerland! :-)
Markus

Mario

A data-driven category based on the XMP date and time would be the quickest solution:



This gives you categories named 01, 02, .. 12 and each category contains the files taken in that month,

If you want more expressive category names, create the data-driven category based on this variable:

{File.DateTime|format:MM}-{File.DateTime|format:MMMM}

This gives you categories named 01-January, 02-February, ... 12-December.

The trick with the leading two-digit month ensures that the sort order is correct.



Note: Don't try this with any normal DAM  ;)
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Mees Dekker

Thanks for the quick advice. It does exactly what I was looking for.

One more proof of IMatch and the power of a good community.