photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: Joe Austin on September 29, 2016, 02:45:07 AM

Title: stripping time from date/time tags
Post by: Joe Austin on September 29, 2016, 02:45:07 AM
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?
Title: Re: stripping time from date/time tags
Post by: jch2103 on September 29, 2016, 03:33:06 AM
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.
Title: Re: stripping time from date/time tags
Post by: Mario on September 29, 2016, 08:49:22 AM
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).