stripping time from date/time tags

Started by Joe Austin, September 29, 2016, 02:45:07 AM

Previous topic - Next topic

Joe Austin

I want to create a data-driven category based on the day of capture for a selected parent category.   Using the date/time tags creates a different level for each time within the day.  Is there a way to strip off the time of the exif createdate tag in the data-driven property?

jch2103

See attached screenshot of a slightly different data-driven category, esp. the Start and Length section of properties. In my case, I was only interested in the initial digit; you'll need to adjust this to your needs.
John

Mario

The trick is to enable the Use part of value option and then specifying the part of the value you want to create the category from. A timestamp looks like

YYYY-DD-MM HH:MM:SS

so if you only want to group by year, you use the first four digits (1,4).
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook