Conditionally load `wp-includes/date.php`

Add support for the new `WP_Date_Query` class, used internally by
`WP_Query`.

http://core.trac.wordpress.org/changeset/25139
Merge pull request #836 from Automattic/fix-835

Conditionally load `wp-includes/date.php`