WPDev.one
Core Function
View Source on Trac ↗

get_weekstartend()

get_weekstartend( mixed $mysqlstring, mixed $start_of_week = '' )

Gets the week start and end from the datetime or date string from MySQL.

Parameters 2 required

Name / Type Description
$mysqlstring
string

Date or datetime field type from MySQL.

Required
(int

| string) $start_of_week Optional. Start of the week as an integer. Default empty string.

Required

Return Value

(int[])
int[] { Week start and end dates as Unix timestamps.

Function Information

Since Version
0.71
Source File
wp-includes/functions.php
Advertisement