Post Details

How to get data between two dates in MYSQL Query
18 Feb

How to get data between two dates in MYSQL Query

Hi Guys
In this example, I will show you How to get data between two dates in MYSQL Query. You can understand a concept of mysql query for between two dates.We will use MySQL to select between two date's timestamp

Let's look at an example:

SELECT id, name, created_at FROM `users` WHERE (created_at BETWEEN '2023-01-01 00:00:00' AND '2023-01-10 00:00:00')

Thank you guys it will help you...

0 Comments

Leave a Comment