Format Dates in TypeScript as YYYY-MM-DD

Formatted date in TypeScript using YYYY-MM-DD format

When working with dates in TypeScript, formatting them into a readable or standardized structure is often necessary, especially for storing in databases or displaying in user interfaces. One of the most common formats used in web development is YYYY-MM-DD, which ensures consistency across systems and locales. In this tutorial, you’ll learn to format dates in … 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 Create a Notes Taking app in Django?

Python Django Note taker app

In this Python Django tutorial, we will learn, How to create a Notes Taking Application in Django. It is a CRUD (Create, Read, Update, Delete) application. We will make a list of documents to edit, delete, and add Notes. These notes will be stored in the default database dbsqlite3 where we can view our list … Read more >>

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 >>

Extract Year From Date in TypeScript

Extract year from specific date in TypeScript

Have you ever worked on a feature where you needed to group records by year? I recently faced this while building an internal dashboard using TypeScript for tracking employee onboarding. I was working on an employee management module built with TypeScript, where each employee’s joining date was stored in the system. My task was to … 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 >>

Change an Integer to a Datetime Object in Python

python convert int to datetime

While I was working on a data analysis project where I needed to convert Unix timestamps (stored as integers) to readable datetime objects. The challenge was that these integers represented time in different formats, some were Unix timestamps in seconds, others in milliseconds, and some were just date representations like 20231105 for November 5, 2023. … Read more >>

How to Get Index Values from DataFrames in Pandas Python?

pandas get index

Recently, I was working on a data analysis project where I needed to extract and manipulate index values from a Pandas DataFrame. As I dug into the problem, I realized that accessing index values isn’t always as simple as it seems. Pandas provides several useful methods to retrieve index values, but knowing which approach to … Read more >>

The pd.crosstab function in Python Pandas

pandas crosstab

When I was working on a data analysis project for a U.S. retail chain where I needed to examine the relationship between customer demographics and purchasing patterns. I needed to create a cross-tabulation of these variables to identify trends. That’s when the pandas crosstab function became my go-to solution. In this article, I’ll explain what … Read more >>

How to Remove All Non-numeric Characters in Pandas

pandas remove non numeric characters from column

When working with real-world data, I often encounter messy text containing a mix of numbers and other characters. Sometimes, I need to extract the numeric values from these strings for calculations or analysis. Pandas makes this data cleaning process much easier, but there’s no single built-in function called “remove_non_numeric()”. Instead, we need to use a … Read more >>