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:- (int[]) { Week start and end dates as Unix timestamps. @type int $start The week start date as a Unix timestamp. @type int $end The week end date as a Unix timestamp. }
Defined at: - Introduced in WordPress: 0.71
- Deprecated in WordPress: —
Description
Gets the week start and end from the datetime or date string from MySQL.