Notification

This article is about Looker Studio. For Looker documentation, visit https://cloud.google.com/looker/docs/intro.

В настоящее время эта страница недоступна на русском языке. Выберите другой язык в нижней части экрана или воспользуйтесь функцией автоматического перевода Google Chrome.

DATE

Creates a date.

Sample usage

DATE(Year, Month, Day)
 
DATE(Order Date and Time)

Syntax

1) Create a Date from Numbers.

DATE(year, month, day)

2) Create a Date from a Date & Time.

DATE(datetime_expression)

Parameters

  • year - a Number field or expression representing the year.
  • month - a Number field or expression representing the month.
  • day - a Number field or expression representing the day.
  • datetime_expression - a Date & Time field or expression.

Return data type

Date

Examples

Example formula Output
DATE(2020, 1, 10) 2020-01-10
DATE(DATETIME "2020-1-10 23:59:59") 2020-01-10

Notes

This function is not available for compatibility mode date types.

Related resources

Эта информация оказалась полезной?

Как можно улучшить эту статью?
true
What's new in Looker Studio?

Learn about new features and recent changes. Looker Studio release notes live on Google Cloud.

Search
Clear search
Close search
Main menu
16746666345878030353
true
Поиск по Справочному центру
true
true
true
true
true
102097
false
false