Open topic with navigation
Return the weekday index for a date or timestamp:
DAYOFWEEK(date)
SELECT DAYOFWEEK('2020-06-20');
The above query returns:
7
Copyright © 2002-2025. Cloud Software Group, Inc. All Rights Reserved.