2022-04-04
1075
#typescript
Alain Perkaz
98882
Apr 4, 2022 â‹… 3 min read

Handling date strings in TypeScript

Alain Perkaz A passionate and disciplined software engineer.

Recent posts:

how to use the Interest Invoker API for better, more accessible UX

How to use the Interest Invoker API for better, more accessible UX

Explore how to use Google’s new experimental Interest Invoker API for delays, popovers, and smarter hover UX.

Emmanuel John
Jun 19, 2025 â‹… 7 min read
How To Build And Deploy A Web App With Bolt.new

How to build and deploy a web app with Bolt

Bolt.new revolutionizes how you build and deploy web apps with no-code development and seamless AI integration.

Isaac Okoro
Jun 19, 2025 â‹… 8 min read
how to get the most out of Cursor

Frontend devs: Here’s how to get the most out of Cursor

Learn how to get the most out of Cursor AI — one of the hottest tools in AI-assisted coding, with practical workflows and underrated features.

Isaac Okoro
Jun 18, 2025 â‹… 5 min read
When to Use OpenAI vs. Open Source LLMs LogRocket

When to use OpenAI vs. open source LLMs in production

Learn about OpenAI vs open source LLMs for frontend devs, with an integration guide, costs, performance comparison, and implementation tips.

Clara Ekekenta
Jun 17, 2025 â‹… 6 min read
View all posts

2 Replies to "Handling date strings in TypeScript"

  1. new Date().toISOString().slice(0, 10),
    —->
    Type ‘string’ is not assignable to type ‘”1900-01-01″ | “1900-01-02” | “1900-01-03” | “1900-01-04” | “1900-01-05” | “1900-01-06” | “1900-01-07” | “1900-01-08” | “

Leave a Reply