get_weekstartend
get_weekstartend ( $mysqlstring, $start_of_week = '' )
Parameters:- (string) mysqlstring Date or datetime field type from MySQL.
- (int|string) start_of_week Optional. Start of the week as an integer. Default empty string.
Returns:- (array) Keys are 'start' and 'end'.
Defined at: - Introduced in WordPress: 0.71
- Deprecated in WordPress: —
Description
Get the week start and end from the datetime or date string from MySQL.