Infamous Date Created

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Infamous Date Created

Re: Infamous Date Created

by NeoTech40 » Fri Jun 27, 2025 1:36 pm

This was a major hassle for me. The "date added" in media monkey is not the same thing as when the file was originally created / ripped. Also, using custom fields for this purpose does not work as you cannot use time/date related checks as part of the custom fields. (They are recognized as general text only.)

To work around this, I created a powershell script to copy a file's Created date to the Last Modified date field (MM calls this "timestamp".) Then I could create some very nice autoplaylists that have songs that I just ripped today, or in the last month, or whatever. The only issue will be the need to periodically rerun my script to keep the Last Modified field matching the creation date. (Any changes to the file tags will trigger MM to reset the timestamp / last modified date.) Hopefully they will eventually add Creation Date as an available field to select so this hack is no longer necessary.

Re: Infamous Date Created

by BinaryRock » Tue Mar 31, 2009 3:27 pm

Thank you so much. I'm liking MM more and more.

Re: Infamous Date Created

by ZvezdanD » Tue Mar 31, 2009 12:24 pm

If you want to apply mentioned preset to the Timestamp field, and consecutively to update the Date Modified value of the file, you should first open Tools / Options dialog box, go to Library / Tags & Playlists, turn ON the "Update tags when editing properties" and turn OFF "Modify timestamp when updating tags".

If you use mentioned preset to store information about Date Created to some Custom field, such information are written in the date/time format which is adjusted with your Windows Regional settings. This format in many cases is not very well for sorting purposes if it is treated as a string and only solution is to store date/time in "YYYY-MM-DD HH:MM:SS" format. I could modify preset to store Date Created in such format, but such expression could be very long and probably much slower. If you really need such thing, you could add the following code to the c:\Program Files\MediaMonkey\Scripts\Auto\RegExpReplace.vbs file, for example with Notepad:

Code: Select all

Function DateTimeISO(sDateTime)
    DateTimeISO = Year(sDateTime) & "-" _
            & Right("0" & Month(sDateTime), 2) & "-" _
            & Right("0" & Day(sDateTime), 2)& " " _
            & Right("0" & Hour(sDateTime), 2) & ":" _
            & Right("0" & Minute(sDateTime), 2) & ":" _
            & Right("0" & Second(sDateTime), 2)
End Function
After that you should restart MM and modify the Replace with string in the mentioned preset with the next string:

Code: Select all

IIf(CreateObject("Scripting.FileSystemObject").FileExists(oSongData.Path), DateTimeISO(CreateObject("Scripting.FileSystemObject").GetFile(IIf(CreateObject("Scripting.FileSystemObject").FileExists(oSongData.Path), oSongData.Path, Script.ScriptPath)).DateCreated), "$&")
Those modifications would be implemented in the next version of the script.

Re: Infamous Date Created

by BinaryRock » Tue Mar 31, 2009 9:31 am

Thanks for the suggestion. I tried it, but now I have some questions. When I choose to put the Date Created info into the Timestamp field it continues to show Date Modified info. The Timestamp field gets updated to "Today hh:mm *M". If I choose to put the Date Created info into a Custom field, it works fine but I have issues sorting using that field. It doesn't sort based on actual time values.

It doesn't matter to me whether the Date Created info goes into the Timestamp field or a Custom field, I just want to be able to sort it so that the most recent tracks added to the hard drive appear first. Any help is appreciated.

Re: Infamous Date Created

by Saiyavenger » Sun Mar 29, 2009 2:10 am

ZvezdanD wrote:If you really need such thing, maybe you could try with the RegExp Find & Replace script and its "Assign the date/time when the file is created to the Timestamp field" preset. If you change the Timestamp field in the Into dropdown list to some of Custom fields, you could get the Date Created information using specified Custom field.
Seems to have worked like a charm. Thanks for the tip and the awesome script in general!

Re: Infamous Date Created

by ZvezdanD » Sun Mar 29, 2009 1:39 am

If you really need such thing, maybe you could try with the RegExp Find & Replace script and its "Assign the date/time when the file is created to the Timestamp field" preset. If you change the Timestamp field in the Into dropdown list to some of Custom fields, you could get the Date Created information using specified Custom field.

Re: Infamous Date Created

by Saiyavenger » Sat Mar 28, 2009 9:55 pm

Any chance of this being implemented? It'd be a HUGE help to peeps like me who create playlists based on this info.

Re: Infamous Date Created

by nohitter151 » Tue Mar 10, 2009 7:58 pm

BinaryRock wrote:Thanks for the replies. Yes, I've seen the original date and timestamp fields. I'm looking for a date created field that will tell me when a particular song was downloaded or ripped to my hard drive, not when it was modified or when it was added to MM. Thanks again for any info.
There is no such field in MM.

Re: Infamous Date Created

by BinaryRock » Tue Mar 10, 2009 7:31 pm

Thanks for the replies. Yes, I've seen the original date and timestamp fields. I'm looking for a date created field that will tell me when a particular song was downloaded or ripped to my hard drive, not when it was modified or when it was added to MM. Thanks again for any info.

Re: Infamous Date Created

by nohitter151 » Tue Mar 10, 2009 6:02 pm

There's also an "Original date" field in MM that can be used as the year the track was actually created. I only mention it because it wasn't clear to me whether you meant date created of the file itself or of the track in general.

Re: Infamous Date Created

by Eyal » Tue Mar 10, 2009 4:59 pm

Right-click on any column header, choose -> Timestamp.
It's Date Modified however, not Date Created.

Infamous Date Created

by BinaryRock » Tue Mar 10, 2009 9:52 am

I'm in search of the 'perfect' music manager and have decided to try out MM. I've read through all of the posts related to the 'date created' field (lack of). From what I can tell, the only way to get a date created field is to use a certain script that has to be run on each file manually. Is this still the case? Is this still the only way? Are there any plans to implement a date created field? Thanks in advance.

Top