date
Converts a year, month, and day into a date.
Syntax
date(<date>)
| Parameter | Type | Description |
|---|---|---|
| date | Date | The date to strip time part. |
Return values
Date
Usage
Creates a date value from year (1922), month (7), and day (20).
date(1922, 7, 20)
Strips the time part from the order creation datetime, keeping only the date.
date(orders.created_at)