I’m currently implementing chat functionality using the Unity SDK.
I am trying to understand the value that the SDK returns for message.createdAt.
I am trying to construct a DateTime object so that I can format the timestamp.
Normally I would just do this as
var timeStamp = new DateTime(message.createdAt);
However this is giving me a totally wrong value:
Timestamp: 1/2/0001 9:00:34 PM
I imagine this means that the SDK is parsing this value incorrectly, but maybe there is something I am missing? I have tried to query the REST platform directly to see if I can make sense of the data coming in, but no luck so far.
Any advice is appreciated!