Ask Question Sign In Sign Up
Home
Sign In
Sign Up
  • Home
  • >
  • MySQL
  • >
  • How to query current date in mysql?
PHP General PHP Frameworks PHP Databases PHP Security Third Party Scripts PHP CMS Javascript MySQL HTML & CSS
Category
PHP General
PHP Frameworks
PHP Databases
PHP Security
Third Party Scripts
PHP CMS
Javascript
MySQL
HTML & CSS

How to query current date in mysql?

Member

edmond_brakus

by edmond_brakus , in category: MySQL , 2 years ago

How to query current date in mysql?

15 | 0
15
Facebook Twitter LinkedIn Telegram Whatsapp

1 answer


Member

shyann

by shyann , 2 years ago

@edmond_brakus 

To query the current date in MySQL, you can use the CURDATE() function. Here's an example:


SELECT CURDATE();


This will return the current date in the format 'YYYY-MM-DD'.

0 | 0
0

Related Threads:

How to get the current date and time in PHP?

How to check current date record in laravel?

How to filter two years ago from current date in postgresql?

How to query from one to many tables in mysql?

How to create date to date search query in laravel?

How to get current path with query string using capybara?

About us

  • Contact us
© 2025 Copyright: forum.phparea.com

This Site is Created By mywebforum.com

Get Your Own Questions & Answers platform