That one always irritated me too, especially as the same applies to [last played]. Here's how I achieved results for today to
really be results from
today, rather than the past 24 hours:
Step 1. (Get todays date into the library)On my "UK English" PC, MC produces [last played] and [date imported] values in the format: "dd/mm/yyyy HH:MM"
Yours may be different, so be sure to check, as we are going to create a new library field using the "Day/Month/Year" data, and it is
crucial that the data is placed in the same order that MC uses in its played and imported fields.
To create a new library field called "Current Date", go to: "
Tools > Options > Library and Folders > Manage Library Fields"
Click on the "Add New Field" button and MC will prompt you for a field name. Enter the words Current Date and click OK
Select "Calculated Data" and paste the blue text into the "Expression" field:
formatdate(now(),dd//MM//yyyy)Ensure that the Day, Month and Year values are placed in the same order as used by MC on your systemOnce you're happy, press the OK button.
Step 2. (search for files imported/played today)We now have todays date in the library, which means that we can write a search string to compare [date imported] or [last played] with [current date]:
Imported today:
[=isequal([date imported],[current date],8)]=1Played today:
[=isequal([last played],[current date],8)]=1The blue text above can be used in various places such as a smartlist rule, a search list pane rule, the search bar in the top right, etc. etc..
Step 3. (Optional)One of the biggest gripes I hear with regards to expressions is that the syntax is a pain to remember. If that's you, then why not go one extra step, and create another two "calculated data" library fields using the same steps as above. Call one "Played Today" and the other, "Imported Today".
[Played Today] will use the expression:
isequal([last played],[current date],8)[Imported Today] will use the expression:
isequal([date imported],[current date],8)Now, when searching for these files, all you need to use is: [played today]=1
No nasty syntax to remember
regards,
-marko.