Is there any function to get a DateTime instead of string in IApiChannelMessage.CreateTime?

In my case I want to compare if the message sent timestamp is greater than the user joined timestamp. But unfortunately the CreateTime value is string. Any idea to achive this?

The returned string is in a standard ISO format that can be parsed with the dotnet datetime parse method.