140
MySQL Date/Time weekofyear() Function
The weekofyear() is a MySQL date/time function. It is used to get the week of the given date.
Syntax
Parameter:
Date_value : date for getting weekofyear
Returns:
This function returns week of the year for a date value.
Example 1
Output:
Example 2
Output:
Next TopicMySQL datetime