
Dates are an integral part of almost every application. Angular provides a date pipe out-of-the-box. The date pipe allows users to convert dates according to predefined or custom Angular date formats. For example:
Using it today is disadvantageous because we load a bunch of code when we can probably achieve the same functionality natively. The Intl.DateTimeFormat
API can be used unless there is a special use-case you need that is only supported by Angular.
Let’s use that as the basis for a date pipe:
It can be customized to meet your needs. It supports timezones, locales, and custom formats, among other features.

I am happy to announce the release of “The Ultimate Monorepo Starter for Node.js Serverless Applications.”
Features
✅ First-Class Typescript Support
✅ DynamoDB Single Table Design
✅ Shared API Gateway
✅ Environments Configuration
✅ JWT Auth Middleware
✅ Http Params Validation
✅ Typed Proxy Handlers
✅ Auto Generators
✅ Localstack
✅ ESLint
✅ Jest
Follow me on Medium or Twitter to read more about Angular and JS!

You’ve probably used the as
type assertion at least once when working with Typescript. For example:
Type assertions are a way to tell the compiler, “trust me, I know what I’m doing.”
The problem is that it doesn’t do any special data checking. TypeScript assumes that you, the programmer…

In Typescript, Record
is a common way to express an object type. For example:
The disadvantage of using a Record
in some cases is that you lose the benefit of expressing the meaning of the key. Let’s take the following example:
Looking at this code, I can’t know…