mysql_to_rfc3339


mysql_to_rfc3339 ( $date_string )

Parameters:
  • (string) $date_string Date string to parse and format.
Returns:
  • (string) Date formatted for ISO8601/RFC3339.
Defined at:

Description

Parses and formats a MySQL datetime (Y-m-d H:i:s) for ISO8601/RFC3339.

Explicitly strips timezones, as datetimes are not saved with any timezone information. Including any information on the offset could be misleading.

Related Functions

Top Google Results

User discussions

wpseek mobile