iso8601_to_datetime Wordpress function


Description:

Converts an iso8601 date to MySQL DateTime format used by post_date[_gmt].


Syntax:


Arguments:

(string) $date_string Date and time in ISO 8601 format [email protected] http://en.wikipedia.org/wiki/ISO_8601}.
(string) $timezone Optional. If set to GMT returns the time minus gmt_offset. Default is 'user'.


Return Type:

(string) The date and time in MySQL DateTime format - Y-m-d H:i:s.


Define At:

wp-includes/formatting.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/iso8601_to_datetime


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×