Darshan Hiranandani : How can I ensure Kotlin Instant is serialized as BsonDateTime instead of BsonString?

Hi, I’m Darshan Hiranandani, I’m currently working with Kotlin and BSON serialization, and I need to ensure that Kotlin’s Instant is serialized as BsonDateTime instead of BsonString. Has anyone tackled this issue before or have any suggestions on how to achieve this? Any tips, resources, or configurations you can share would be incredibly helpful.

Looking forward to your suggestions!

Regards
Darshan Hiranandani