NEXT_DAY
Returns the date or timestamp of the first specified day of week that occurs after the input date.
Syntax
NEXT_DAY(date_timestamp_expression string, day_of_week string) → date
date_timestamp_expression: A
DATE
orTIMESTAMP
expression.day_of_week: A string expression identifying a day of the week. The value can be a string literal or an expression that returns a string. The string must be one of the following (case-sensitive):
SU
,SUN
,SUNDAY
MO
,MON
,MONDAY
TU
,TUE
,TUESDAY
WE
,WED
,WEDNESDAY
TH
,THU
,THURSDAY
FR
,FRI
,FRIDAY
SA
,SAT
,SATURDAY
Examples
NEXT_DAY example
NEXT_DAY example
Usage Notes
The return value is always a date regardless of whether date_timestamp_expression
is a date or a timestamp.
Last updated