Member-only story

Why you’re not correctly using Dates in your Application

Bending the Clean Architecture Principles

Anthony Trad
4 min readAug 21, 2022

Introduction

This is one of the topics that is not very common. Even though we are always interacting with Dates and Times in our application, they can be very complex depending on your use case.

Our entire application broke because of some DateTime concepts that wasn’t properly though through so ideally, I am writing an article about it so you can learn from my mistakes.

If you’re taking this lightly, well you shouldn’t ! Even physicians like Einstein had there own take on it:

Time Meme

What are we talking about?

I see people bragging on how they use and developed highly scalable applications in a Microservices and Multi Region environment. While there’s nothing wrong with presenting the best version of yourself or the most adequate to the job, you should always keep in mind that there’s always some tradeoffs to every choice you make.

If you’re on the Cloud, you may be saving dates and times from many different time zones which is pretty standard. We’re talking here about the common pitfalls and solutions to get along with this generic requirement.

The Problem

--

--

Anthony Trad
Anthony Trad

Written by Anthony Trad

Senior Software Engineer focused on .NET and the Cloud. Reconsidering major principles and patterns, ideas are my own.

Responses (4)