What is the opposite of FormatDateTime - to get a TDateTime from a string?

I’m trying to convert a string like “2020-01-06 20:20:01” to a TDateTime typed variable, so I can use it to set a PlaylistItem Fixtime.

I’ve searched the forum for an example of this but haven’t found any approach other than to write a parser from scratch that creates a number value of the days since 1899.

What’s the best approach to do this?

Update: PascalScript Github has some examples on how to create TDateTime from integer which work with Mairlist 6.x.

Converting String parts to integers to get the TDateTime seems doable.