X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

PHP date_parse() Function

PHP Date/Time PHP Date/Time Reference

Example

Return an associative array with detailed information about a specified date:

<?php
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 a date (in a format accepted by strtotime())

Technical Details

Return Value: Returns an associative array containing information about the parsed date on success. FALSE on failure
PHP Version: 5.2+


PHP Date/Time PHP Date/Time Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook