get_weekstartend() WP 1.0
Get the week start and end from the datetime or date string from MySQL.
1 time = 0.000049s = very fast | 50000 times = 0.33s = very fast | PHP 7.1.2RC1, WP 4.7.3
No Hooks.
Return
Array. Keys are 'start' and 'end'.
Usage
get_weekstartend( $mysqlstring, $start_of_week );
- $mysqlstring(string) (required)
- Date or datetime field type from MySQL.
- $start_of_week(int/string)
- Start of the week as an integer.
Default: empty string
Changelog
Since 0.71 | Introduced. |
Code of get_weekstartend() get weekstartend WP 5.6
Related Functions
From tag: date time
- comment_date()
- comment_time()
- current_time()
- date_i18n()
- get_comment_date()
- get_comment_time()
- get_date_from_gmt()