DATE/TIME - Advanced SQL Engine - Teradata Database

Database Utilities

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
xha1591998860283.ditamap
dita:ditavalPath
xha1591998860283.ditaval
dita:id
B035-1102
lifecycle
previous
Product Category
Teradata Vantageā„¢

The DATE and TIME commands are synonyms. Both show the same display of current system day, date, and time.

Syntax

{ DATE | TIME }

Usage Notes

The DATE or TIME command shows a timestamp in the following format:

DDD mmm dd, yyyy HH:MM:SS
Format Description
DDD Abbreviated name of the day of the week.
mmm dd, yyyy Abbreviated name of the calendar month, numeric day, and four-digit year.
HH:MM:SS Current system time in hour, minutes, and seconds.

Examples: DATE and TIME command outputs

> date
date

Thu Jul 02, 2016  18:17:05

> time
time

Thu Jul 02, 2016  18:22:14