---
title: "Discussion on \"MongoDB, C# and DateTimeOffset\" | Hashnode"
description: "Discussion on \"MongoDB, C# and DateTimeOffset\". The MongoDB driver for C#/.NET  can currently be serialized/deserialized in three different ways - as an array, object or string.\nYou can control the BSON representation of your property by adding the [BsonRepresentation] attribute or set it on your ..."
url: "https://hashnode.com/posts/c-mongodb-serialization-of-datetimeoffset/628e2a6243220290a7eea9ce"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [MongoDB, C# and DateTimeOffset](https://blog.krusen.dk/c-mongodb-serialization-of-datetimeoffset?utm_source=hashnode&utm_medium=feed)

The MongoDB driver for C#/.NET can currently be serialized/deserialized in three different ways - as an array, object or string. You can control the BSON representation of your property by adding the \[BsonRepresentation\] attribute or set it on your ...

Sep 20, 2017 · 2 min read · blog.krusen.dk  
Read the article

## Written by

[Søren Kruse](https://hashnode.com/@Krusen)

@Krusen · Odense, Denmark

  
[View profile](https://hashnode.com/@Krusen)

Tech Lead @ IMPACT Commerce

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
