User Tools

Site Tools

A PCRE internal error occured. This might be caused by a faulty plugin

Sidebar

**HPL/SQL is included to Apache Hive since version 2.0** * [[home|Home]]\\ * [[why|Why HPL/SQL]]\\ * [[features|Key Features]]\\ * [[start|Get Started]]\\ * [[doc|HPL/SQL Reference]]\\ * [[download|Download]]\\ * [[new|What's New]]\\ * [[about|About]]

date

====== DATE Function - PL/HQL Reference====== DATE function converts an expression to DATE data type. **Syntax**: <code language="sql"> DATE(expression); </code> **Return Data Type:** DATE **Example:** Convert a string and timestamp to DATE: <code language="sql"> DATE('2015-03-12'); DATE('2015' || '-03-' || '12'); DATE(TIMESTAMP '2015-03-12 10:58:34.111'); </code> **Compatibility**: IBM DB2 **Version**: PL/HQL 0.03 See also: * [[date-literal|DATE Literal]] * [[timestamp-literal|TIMESTAMP Literal]] * [[timestamp-iso|TIMESTAMP_ISO Function]]