How to handle time change when storing business hours

This page summarizes the projects mentioned and recommended in the original post on /r/csharp

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • NodaTime

    A better date and time API for .NET

  • Use NodaTime. It's really nice to work with. It allows to store LocalTime (i.e. time of day). And then convert it to ZonedDateTime using some given LocalDate and DateTimeZone, which will adjust correctly for things like daylight savings. You can also easily convert a ZonedDateTime to UTC if needed or an unambiguous Instant which can be converted to any other time zone.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts