PHP date_parse()Function
PHP Date/Time Reference Manual
Examples
Returns an associative array with detailed information about a specified date:
<?php
print_r(date_parse("2013-05-01 12:30:45.5"));
?>
print_r(date_parse("2013-05-01 12:30:45.5"));
?>
Run example »
Definition and Usage
The date_parse() function returns an associative array with detailed information about a specified date.
Syntax
date_parse(date);
| Parameter | Description |
|---|---|
| date | Required. Specifies the date (formatstrtotime()accepted). |
Technical Details
| Return value: | Returns an associative array with parsed date information on success, FALSE on failure. |
|---|---|
| PHP Version: | 5.2+ |
PHP Date/Time Reference Manual Other Extensions