Author Topic: LAST PLAYED date REFORMAT?  (Read 1318 times)

Freddy Barker

  • Sr. Member
  • ****
  • Posts: 751
  • 🎧 MB 3.4.7628P
Hi coders and developers:

I've been looking for a way to display the LAST PLAYED date as 'UNKNOWN' if unknown/blank and 'TODAY' if Last Played was on todays date?

At the moment I'm using this:-
$Date(<Last Played>,dd/mm/yy) - CREDIT to Redwing...

No luck with my attempts, so any help most appreciated - Thanks very much!

Best Regards: Fred  :D

Bee-liever

  • Member
  • Sr. Member
  • *****
  • Posts: 3833
  • MB Version: 3.6.8849 P
At the moment I'm using this:-
$Date(<Last Played>,dd/mm/yy) - CREDIT to Redwing
For the unknown part, you could try:
$IsNull(<Last Played>,"UNKNOWN",$Date(<Last Played>,dd/mm/yy))
That won't work as <Last Played> never returns a null value.
If <Last Played> has no value it already returns Unknown
So if you want it in capitals:
$If(<Last Played>="Unknown","UNKNOWN",$Date(<Last Played>,dd/mm/yyy))
Last Edit: November 04, 2017, 03:50:34 AM by Bee-liever
MusicBee and my library - Making bee-utiful music together

redwing

  • Guest
I don't think it's possible to output today's date with virtual tags.

Freddy Barker

  • Sr. Member
  • ****
  • Posts: 751
  • 🎧 MB 3.4.7628P
At the moment I'm using this:-
$Date(<Last Played>,dd/mm/yy) - CREDIT to Redwing
So if you want it in capitals:
$If(<Last Played>="Unknown","UNKNOWN",$Date(<Last Played>,dd/mm/yyy))

That worked great, and as usual, thanks so much for assistance, feedback, tips and fixes.
The UNKNOWN now looks a lot better than "BLANK"  ;D
Best Regards: Fred

Freddy Barker

  • Sr. Member
  • ****
  • Posts: 751
  • 🎧 MB 3.4.7628P
I don't think it's possible to output today's date with virtual tags.

Thanks so much for your reply/response! My OCD will have to cope without the TODAY part!!
Best Regards: Fred  ;)