Database.Guide

Skip to content

Beginners

  • What is a Database?
  • Database Tutorial

SQL

  • SQL Tutorial
  • SQL Reference
  • SQL Joins Tutorial
  • SQL Transactions Tutorial
  • Basic SQL Queries

Categories

  • Azure SQL Edge (17)
  • Database Concepts (99)
  • Database Tools (72)
  • DBMS (9)
  • DuckDB (158)
  • MariaDB (424)
  • Microsoft Access (17)
  • MongoDB (265)
  • MySQL (602)
  • NoSQL (8)
  • Oracle (301)
  • PostgreSQL (480)
  • Redis (210)
  • SQL (697)
  • SQL Server (1,170)
  • SQLite (299)

Tag: date functions

SYSTIMESTAMP Function in Oracle

Posted on August 9, 2021 by Ian

In Oracle Database, the SYSTIMESTAMP function returns the system date, including fractional seconds and time zone, of the system on which the database resides.

The returned value is of type TIMESTAMP WITH TIME ZONE. 

Continue reading →
Oracle date functions, functions, what is

SYSDATE Function in Oracle

Posted on August 8, 2021 by Ian

In Oracle Database, the SYSDATE function returns the current date and time set for the operating system on which the database server resides.

The returned value is of type DATE. 

Continue reading →
Oracle date functions, functions, what is

EXTRACT (datetime) Function in Oracle

Posted on August 8, 2021August 8, 2021 by Ian

In Oracle Database, the EXTRACT(datetime) function extracts and returns the value of a specified datetime field from a datetime or interval expression.

Continue reading →
Oracle date functions, functions, what is

Change the Time Zone Offset on a datetimeoffset Value in SQL Server (T-SQL)

Posted on July 28, 2021 by Ian

You can use the SWITCHOFFSET() function in SQL Server to change the time zone offset on a datetimeoffset value.

The function accepts two arguments; a datetimeoffset(n) value (or an expression that can be resolved to a datetimeoffset(n) value), and the new time zone.

Continue reading →
SQL Server date functions, dates, how to, mssql, t-sql

MariaDB Date & Time Functions (Full List)

Posted on June 22, 2021 by Ian

This article contains a full list of built-in MariaDB date and time functions.

Continue reading →
MariaDB date functions, functions, reference

How SQRT() Works in MariaDB

Posted on June 18, 2021 by Ian

In MariaDB, ASIN() is a built-in numeric function that returns the square root of its argument.

Continue reading →
MariaDB date functions, functions, what is

How ADD_MONTHS() Works in MariaDB

Posted on June 15, 2021August 5, 2021 by Ian

In MariaDB, ADD_MONTHS() is a built-in date and time function that adds a given number of months to a date, and returns the result.

The date can be a date, datetime, or timestamp value.

This function was introduced in MariaDB 10.6.1 to enhance Oracle compatibility. There are at least 6 other ways to add months to a date in MariaDB.

Continue reading →
MariaDB date functions, functions, what is

How UTC_TIMESTAMP() Works in MariaDB

Posted on June 3, 2021 by Ian

In MariaDB, UTC_TIMESTAMP() is a built-in date and time function that returns the current UTC date and time.

The result is returned in ‘YYYY-MM-DD HH:MM:SS’ or YYYYMMDDHHMMSS.uuuuuu format, depending on whether the function is used in a string or numeric context.

UTC stands for Coordinated Universal Time, and is the world standard for regulating time.

Continue reading →
MariaDB date functions, functions, what is

How UTC_TIME() Works in MariaDB

Posted on June 3, 2021 by Ian

In MariaDB, UTC_TIME() is a built-in date and time function that returns the current UTC time.

The result is returned in ‘HH:MM:SS’ or HHMMSS.uuuuuu format, depending on whether the function is used in a string or numeric context.

UTC stands for Coordinated Universal Time, and is the world standard for regulating time.

Continue reading →
MariaDB date functions, functions, what is

How UTC_DATE() Works in MariaDB

Posted on June 2, 2021 by Ian

In MariaDB, UTC_DATE() is a built-in date and time function that returns the current UTC date.

The result is returned in ‘YYYY-MM-DD’ or YYYYMMDD format, depending on whether the function is used in a string or numeric context.

UTC stands for Coordinated Universal Time, and is the world standard for regulating time.

Continue reading →
MariaDB date functions, functions, what is
  • «
  • 1
  • …
  • 5
  • 6
  • 7
  • 8
  • 9
  • …
  • 31
  • »

About Database.Guide | Privacy Policy