InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Mysql tutorials

  • Enable query log without restarting mysql on Linux
  • How to find mysql query rate on Linux
  • Mysql - display row count and size of tables
  • Mysql - get size of all databases
  • Mysql - get total queries since beginning
  • Mysql - how to copy a table
  • Mysql - how to enable query log
  • Mysql 5.7 root password after installation
  • Mysql difference between CURDATE() and NOW()
  • Mysql find current timezone offset
  • Mysql find slave lag
  • Mysql how to dump schema of all databases
  • Mysql multi column Index
  • Wordpress Mysql Queries
  • mysql - how to enable query logs
  • mysql find recently created-tables
 
  • Home
  • > Tutorials
  • > Mysql

Mysql difference between CURDATE() and NOW()

By admin on Dec 2, 2015

Mysql CURDATE

CURDATE() returns only date portion of date in current timezone.

select CURDATE();

Outcome

2015-12-02

Mysql NOW

NOW() returns full time in current timezone.

select NOW();

Outcome

2015-12-02 04:59:34

Mysql CURDATE and NOW in GMT timezone

SELECT convert_tz(CURDATE(), @@session.time_zone,'+00:00');
SELECT convert_tz(NOW(), @@session.time_zone,'+00:00');

Suggested posts:

  1. Query to find recently modified posts in WordPress
  2. How to find mysql query rate on Linux
  3. Curl – follow redirects
  4. Display keys added to ssh-agent using ssh-add
  5. AngularJS – include inline template
  6. Ngrep – quick start guide
  7. Python filter vs ifilter
  8. CSS – round toggle switch using checkbox and label
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Mysql, Tutorials
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress