Skip to content
  • Blog (1)
  • About Us
  • Tags
  • Donations
1SMARTchicken - Code Made Easy
  • Tutorials (195)
  • Reference (2173)
  • Snippets (69)

Tag: MySQL Date Functions

1SMARTchicken - Code Made Easy

Tag: MySQL Date Functions

  • Tutorials (195)
  • Reference (2173)
  • Snippets (69)
  • Blog (1)
  • About Us
  • Tags
  • Donations
1SMARTchicken - Code Made Easy
  • Tutorials (195)
  • Reference (2173)
  • Snippets (69)
1SMARTchicken - Code Made Easy

Tag: MySQL Date Functions

  • Tutorials (195)
  • Reference (2173)
  • Snippets (69)
  • Home
  • MySQL Date Functions
  • Page 2
SQL Reference

SQL – MySQL LAST_DAY() Function

August 13, 2024 / MySQL Functions, Reference, SQL Reference / Date, MySQL, MySQL Date Functions

The MySQL LAST_DAY() function extracts the last day of the month for a given date.

SQL Reference

SQL – MySQL LOCALTIME() Function

August 13, 2024 / MySQL Functions, Reference, SQL Reference / Date, MySQL, MySQL Date Functions

The MySQL LOCALTIME() function returns the current date and time as “YYYY-MM-DD HH-MM-SS” (string) or as YYYYMMDDHHMMSS.uuuuuu (numeric).

SQL Reference

SQL – MySQL LOCALTIMESTAMP() Function

August 13, 2024 / MySQL Functions, Reference, SQL Reference / Date, MySQL, MySQL Date Functions

The MySQL LOCALTIMESTAMP() function returns the current date and time as “YYYY-MM-DD HH-MM-SS” (string) or as YYYYMMDDHHMMSS.uuuuuu (numeric).

SQL Reference

SQL – MySQL MAKEDATE() Function

August 13, 2024 / MySQL Functions, Reference, SQL Reference / Date, MySQL, MySQL Date Functions

The MySQL MAKEDATE() function creates and returns a date based on a year and a number of days value.

SQL Reference

SQL – MySQL MAKETIME() Function

August 13, 2024 / MySQL Functions, Reference, SQL Reference / Date, MySQL, MySQL Date Functions

The MySQL MAKETIME() function creates and returns a time based on an hour, minute, and second value.

SQL Reference

SQL – MySQL MICROSECOND() Function

August 13, 2024 / MySQL Functions, Reference, SQL Reference / Date, MySQL, MySQL Date Functions

The MySQL MICROSECOND() function returns the microsecond part of a time/datetime (from 0 to 999999).

SQL Reference

SQL – MySQL MINUTE() Function

August 13, 2024 / MySQL Functions, Reference, SQL Reference / Date, MySQL, MySQL Date Functions

The MySQL MINUTE() function returns the minute part of a time/datetime (from 0 to 59).

SQL Reference

SQL – MySQL MONTH() Function

August 14, 2024 / MySQL Functions, Reference, SQL Reference / Date, MySQL, MySQL Date Functions

The MySQL MONTH() function returns the month part for a given date (a number from 1 to 12).

SQL Reference

SQL – MySQL MONTHNAME() Function

August 14, 2024 / MySQL Functions, Reference, SQL Reference / Date, MySQL, MySQL Date Functions

The MySQL MONTHNAME() function returns the name of the month for a given date.

SQL Reference

SQL – MySQL NOW() Function

August 14, 2024 / MySQL Functions, Reference, SQL Reference / Date, MySQL, MySQL Date Functions

The MySQL NOW() function returns the current date and time as “YYYY-MM-DD HH:MM:SS” (string) or as YYYYMMDDHHMMSS.uuuuuu (numeric).

SQL Reference

SQL – MySQL PERIOD_ADD() Function

August 14, 2024 / MySQL Functions, Reference, SQL Reference / Date, MySQL, MySQL Date Functions

The MySQL PERIOD_ADD() function adds a specified number of months to a period and will return the result formatted as YYYYMM.

SQL Reference

SQL – MySQL PERIOD_DIFF() Function

August 14, 2024 / MySQL Functions, Reference, SQL Reference / Date, MySQL, MySQL Date Functions

The MySQL PERIOD_DIFF() function returns the difference between two periods (both periods should be in the same format). The result will be in months.

SQL Reference

SQL – MySQL QUARTER() Function

August 14, 2024 / MySQL Functions, Reference, SQL Reference / Date, MySQL, MySQL Date Functions

The MySQL QUARTER() function returns the quarter of the year for a given date value (a number from 1 to 4).

SQL Reference

SQL – MySQL SECOND() Function

August 14, 2024 / MySQL Functions, Reference, SQL Reference / Date, MySQL, MySQL Date Functions

The MySQL SECOND() function returns the seconds part of a time/datetime (from 0 to 59).

SQL Reference

SQL – MySQL SEC_TO_TIME() Function

August 14, 2024 / MySQL Functions, Reference, SQL Reference / Date, MySQL, MySQL Date Functions

The MySQL SEC_TO_TIME() function returns a time value (in format HH:MM:SS) based on the specified seconds (positive or negative).

SQL Reference

SQL – MySQL STR_TO_DATE() Function

August 14, 2024 / MySQL Functions, Reference, SQL Reference / Date, MySQL, MySQL Date Functions

The MySQL STR_TO_DATE() function returns a date based on a string and a format.

SQL Reference

SQL – MySQL SUBDATE() Function

August 14, 2024 / MySQL Functions, Reference, SQL Reference / Date, MySQL, MySQL Date Functions

The MySQL SUBDATE() function subtracts a time/date interval from a date and then returns the new date.

SQL Reference

SQL – MySQL SUBTIME() Function

August 14, 2024 / MySQL Functions, Reference, SQL Reference / Date, MySQL, MySQL Date Functions

The MySQL SUBTIME() function subtracts time from a time/datetime expression and then returns the new time/datetime.

SQL Reference

SQL – MySQL SYSDATE() Function

August 14, 2024 / MySQL Functions, Reference, SQL Reference / Date, MySQL, MySQL Date Functions

The MySQL SYSDATE() function returns the current date and time as “YYYY-MM-DD HH:MM:SS” (string) or as YYYYMMDDHHMMSS (numeric).

SQL Reference

SQL – MySQL TIME() Function

August 14, 2024 / MySQL Functions, Reference, SQL Reference / Date, MySQL, MySQL Date Functions

The MySQL TIME() function extracts the time part from a given time/datetime, and returns “00:00:00” if not a datetime/time, or NULL if expression is NULL.

← Previous 1 2 3 Next →

or View All Tags

Tutorials

  • HTML Tutorials (40)
  • CSS Tutorials (45)
    • CSS Flexbox (12)
  • JavaScript Tutorials (18)
  • jQuery Tutorials (13)
  • PHP Tutorials (0)
  • SQL Tutorials (0)
  • Python Tutorials (79)
    • Python File Handling (4)
    • Python and MySQL (11)
  • WordPress Tutorials (0)

Reference

  • HTML Reference (244)
    • HTML Tags (107)
    • HTML Attributes (46)
    • HTML Events (76)
    • HTML Resources (15)
  • CSS Reference (309)
    • CSS Selectors (55)
    • CSS Properties (220)
    • CSS Functions (17)
    • CSS Resources (17)
  • JavaScript Reference (556)
    • JavaScript Selectors (7)
    • JavaScript Operators (12)
    • JavaScript Statements (17)
    • JavaScript Methods (285)
    • JavaScript Properties (162)
    • JavaScript RegExp (45)
    • JavaScript Resources (28)
  • jQuery Reference (220)
    • jQuery Selectors (54)
    • jQuery Methods (140)
    • jQuery Ajax Methods (16)
    • jQuery Properties (17)
    • jQuery Resources (9)
  • PHP Reference (460)
    • PHP Keywords (59)
    • PHP Functions (400)
    • PHP Constants (0)
    • PHP Resources (1)
  • SQL Reference (290)
    • SQL Keywords (59)
    • MySQL Functions (138)
    • SQL Server Functions (83)
    • SQL Resources (10)
  • Python Reference (94)
    • Python Methods (86)
    • Python Resources (8)
  • WordPress Reference (0)

Snippets

  • HTML Snippets (3)
  • CSS Snippets (12)
  • JavaScript Snippets (5)
  • jQuery Snippets (8)
  • PHP Snippets (1)
  • SQL Snippets (3)
  • Python Snippets (1)
  • WordPress Snippets (36)
1SMARTchicken - Code Made Easy

333 Washington Blvd.
Suite 126
Marina del Rey, CA 90292
United States

contact2026@1smartchicken.com

  • About Us
  • Privacy Policy
  • Cookie Policy
  • Terms & Conditions

Search for Code:

or View All Tags

Copyright © 2026 1SMARTchicken | All Rights Reserved.