Details
Description
next_day(string start_date, string day_of_week): string
next_day(date start_date, string day_of_week): string
Returns the first date which is later than start_date and named as day_of_week (as of Hive 1.2.0). start_date is a string/date/timestamp. day_of_week is 2 letters, 3 letters or full name of the day of the week (e.g. Mo, tue, FRIDAY). The time part of start_date is ignored. Example: next_day('2015-01-14', 'TU') = 2015-01-20.
Attachments
Issue Links
- relates to
-
SPARK-8864 Date/time function and data type design
- Resolved
- links to