C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
MySQL Date/Time weekday() FunctionThe weekday() is a MySQL date/time function. It is used to get the index for a date. Syntaxselect weekday(date_value); Parameter:Date_value : date for getting weekday Returns:This function returns the weekday index for a date. Example 1select weekday('2018-10-03'); Output: Example 2select weekday('1995-02-11'); Output:
Next TopicMySQL datetime
|