How to Add Minutes to a Date in TypeScript?

Update date by adding minutes in Typescript

While working on a feature to send timed reminders, I needed to add a few minutes to a given date in my TypeScript app. For this, I first tried using the built-in setMinutes method, but soon realized it could lead to issues when reusing the original date object. I explored other approaches to avoid this … Read more >>

How to Handle ISO Date Strings in TypeScript?

Convert ISO format to Date in Typescript

While working on a recent feature that displayed important dates in a user-friendly format, I encountered an issue. The ISO date string, like “2025-07-04T00:00:00.000Z,” was showing up as July 3 instead of July 4 in the UI. At first, it seemed like a simple formatting issue, but it turned out to be a classic time … Read more >>

Convert Number to Date in TypeScript

Convert Number to Date in TypeScript with Unixtime stamp

When I was working on a TypeScript project recently, I got a requirement to show dates from a system that sent me big numbers like 1623456789000. These numbers are called timestamps, and they represent a date and time, but in a format that’s hard to read. In this blog, I will show you how to … Read more >>

How to Check for Invalid Dates in TypeScript?

Check invalid dates in typescript

Have you ever seen your app behave strangely just because someone entered the wrong date? For example, a user might type “2025-02-30”, which is not even a real date or the used date format is not valid for the app’s date settings. These small issues can cause big problems if we don’t handle them properly. … Read more >>

How to Subtract Dates in TypeScript?

Subtract Dates in TypeScript

As a developer, you may often encounter scenarios where you need to calculate the difference between two dates. Whether you’re building a calendar app, a scheduling system, or any other application that involves date manipulation, knowing how to subtract dates is crucial. In this tutorial, I will explain how to subtract dates in TypeScript, along … Read more >>

How to Calculate Yesterday’s Date in TypeScript

Calculate yesterday date in typescript

While building a feature for a client project, I needed to log data from the previous day. That meant figuring out how to get yesterday’s date in TypeScript. It sounds simple, but it needs to be done right, especially when dealing with time zones or edge cases. In this tutorial, I’ll explain how to calculate … Read more >>

How to Get Tomorrow’s Date in TypeScript

calculate tomorrow's date in typescript

While building a minor feature in our internal HR tool, I had to show the date for the next day based on user actions. Since we’re using TypeScript for the frontend, I looked into a few clean and reliable ways to calculate tomorrow’s date. In this tutorial, I’ll explain how to get tomorrow’s date in … Read more >>

How to Compare Dates Without Time in TypeScript

compare Dates Without Time in TypeScript

Recently, while working on a TypeScript feature for an internal tool, I needed to compare two dates, but only the date part, not the time. At first, I thought it would be straightforward, but I realised there are multiple ways to do it, and the results can vary depending on the method used. I tried … Read more >>

How to Get the Current Date in Milliseconds Using TypeScript

Get current date in milliseconds in typescript

While working as a Typescript developer on time-sensitive applications, I recently faced an issue where I needed to accurately capture and manipulate timestamps. It’s one of those settings that can make a big difference, especially when logging events, syncing data, or tracking real-time user actions. In this tutorial, I will explain how to get the … Read more >>

How to Get the Month from a Date in TypeScript

Get month from date in Typescript

Whether you’re working on a calendar app, generating reports, or performing date-based calculations, retrieving the month from a date is a common task. We’ll explore different methods to accomplish this and provide practical examples along the way. In this tutorial, I will explain how to extract the month from a date object in TypeScript. Understanding … Read more >>

51 Python Programs

51 PYTHON PROGRAMS PDF FREE

Download a FREE PDF (112 Pages) Containing 51 Useful Python Programs.

pyython developer roadmap

Aspiring to be a Python developer?

Download a FREE PDF on how to become a Python developer.

Let’s be friends

Be the first to know about sales and special discounts.