How to get the correct timeslot in a playlist postprocessing script

Hi there mAirList script wizzards :slight_smile:

What is the best way to get the actual timeslot (date+time) of the playlist you’re manipulating in a ‘playlist postprocessing script’? I tried:

CurrentPlaylist.GetMetadata(0).GetStartTime(sttCalculated)

and it gives me the correct hour but the wrong date (today instead of the date of the playlist)… weird.

Besides that I’m looking for a way to get an ISO weeknumber from a TDateTime. Anyone an idea?

Thanks!