Why Use DateTimeOffset

added by DotNetKicks
1/18/2022 3:59:20 AM

400 Views

Using DateTime for entity properties and database fields is ubiquitous, but if you really care about the time portion of the value, it's often ambiguous. What time zone is the date in? Is it stored as UTC? From everywhere that touches it? How can you be sure?


0 comments