Core Function
View Source on Trac ↗ mysql_to_rfc3339()
mysql_to_rfc3339( mixed $date_string ) Parses and formats a MySQL datetime (Y-m-d H:i:s) for ISO8601 (Y-m-d\TH:i:s).
Parameters 1 required
| Name / Type | Description |
|---|---|
| $date_string string | Date string to parse and format. Required |
Return Value
(string)
Date formatted for ISO8601 without time zone.
Function Information
Since Version
4.4.0
Source File
wp-includes/functions.php
Advertisement