About 10,100,000 results
Open links in new tab
  1. Date and time data types and functions (Transact-SQL)

    Aug 8, 2024 · Date and time functions. The following tables list the Transact-SQL date and time functions. For more information about determinism, see Deterministic and Nondeterministic Functions. Functions that return system date and time values

  2. MySQL Date and Time Functions - GeeksforGeeks

    Apr 15, 2025 · MySQL’s date and time functions are essential tools for handling and manipulating temporal data within your databases. By mastering functions like NOW() , CURDATE() , DATE_ADD() , DATEDIFF() , and DATE_FORMAT() , you can easily work with time-based calculations , comparisons , and formats .

  3. Date Functions in SQL Server and MySQL - W3Schools

    SQL Date Data Types. MySQL comes with the following data types for storing a date or a date/time value in the database: DATE - format YYYY-MM-DD; DATETIME - format: YYYY-MM-DD HH:MI:SS; TIMESTAMP - format: YYYY-MM-DD HH:MI:SS; YEAR - format YYYY or YY; SQL Server comes with the following data types for storing a date or a date/time value in the ...

  4. SQL Server Date and Time Functions with Examples

    Dec 31, 2024 · Learn SQL Server date and time functions SYSDATETIME, SYSDATETIMEOFFSET, SYSUTCDATETIME, CURRENT_TIMESTAMP, GETDATE (), DATENAME, DATEPART with examples.

  5. SQL Date Functions - SQL Tutorial

    SQL date functions allow you to manipulate date and time effectively. You can use the date functions for various operations such as adding days to a date, calculating the difference between two dates, or extracting a part of a date.

  6. SQL Server Date Functions Overview - SQL Server Tutorial

    This page lists the most commonly used SQL Server Date functions that allow you to handle date and time data effectively. Returns the current system date and time without the time zone part. Returns a date part of a date as an integer number. Returns the current system date and time of the operating system on which the SQL Server is running.

  7. List of Date and Time Functions in SQL Server (T-SQL)

    These functions allow to you build a date and/or time value from the various parts that make up the date/time. Simply provide the various parts, and the function will return the date/time in the applicable data type.

  8. MySQL :: MySQL 9.3 Reference Manual :: 14.7 Date and Time Functions

    Here is an example that uses date functions. The following query selects all rows with a date_col value from within the last 30 days: . mysql> SELECT something FROM tbl_name-> WHERE DATE_SUB(CURDATE(),INTERVAL 30 DAY) <= date_col;. The query also selects rows with dates that lie in the future.

  9. SQL DATE Functions and Time functions - Tutorial Gateway

    The SQL Server Date Functions helps us to work with date and time values. For example, you need these functions to get the Current date or extract the year or month from the column, etc. In this article, we will show you the available list of Date functions along with their descriptions.

  10. SQL Date and Time Functions in 5 Popular SQL Dialects

    Oct 27, 2021 · In this article, I summarize the date and time data types used in PostgreSQL, Oracle, SQLite, MySQL, and T-SQL. I also provide examples with the key SQL date and time functions used across these dialects. It’s time to become date and time gurus! Do you want to calculate how often employees are running late for work?

  11. Some results have been removed
Refresh