Return an associative array with detailed information about a specified date:
<?php
print_r(date_parse("2013-05-01 12:30:45.5"));
?>
Try it Yourself »
The date_parse() function returns an associative array with detailed information about a specified date.
date_parse(
date)
Parameter | Description |
---|---|
date | Required. Specifies a date (in a format accepted by strtotime()) |
Return Value: | Returns an associative array containing information about the parsed date on success. FALSE on failure |
---|---|
PHP Version: | 5.2+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!