Noob alert: please help.
I am trying to write a simple script that will give me play counter per 100 days. I am using it to list my favourite songs. I am currently using LastPlayed so that play count per 100 day at date of last played is computed.
Code: Select all
itm.Custom3 = ((itm.PlayCounter - 1) * 100) / (itm.LastPlayed - itm.DateAdded)
I'd like to be able to us today's date. So code should look something like
Code: Select all
itm.Custom3 = (itm.PlayCounter * 100) / ([b]<today>[/b] - itm.DateAdded)
I think it should be something easy but I can't find in script help file. Thanks.
Noob alert: please help.
I am trying to write a simple script that will give me play counter per 100 days. I am using it to list my favourite songs. I am currently using LastPlayed so that play count per 100 day at date of last played is computed.
[code]itm.Custom3 = ((itm.PlayCounter - 1) * 100) / (itm.LastPlayed - itm.DateAdded)[/code]
I'd like to be able to us today's date. So code should look something like
[code]itm.Custom3 = (itm.PlayCounter * 100) / ([b]<today>[/b] - itm.DateAdded)[/code]
I think it should be something easy but I can't find in script help file. Thanks.