
Moderator: Gurus
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.
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.
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
IIf(CreateObject("Scripting.FileSystemObject").FileExists(oSongData.Path), DateTimeISO(CreateObject("Scripting.FileSystemObject").GetFile(IIf(CreateObject("Scripting.FileSystemObject").FileExists(oSongData.Path), oSongData.Path, Script.ScriptPath)).DateCreated), "$&")Users browsing this forum: No registered users and 1 guest