SQL Notebook (logo)

DATEFROMPARTS Function

Returns a string formatted like "2015-12-25" based on the provided year, month, and day values.

Syntax

DATEFROMPARTS(year, month, day)

Arguments

Return Value

A string formatted like "2015-12-25".

Examples