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

PHP date_parse_from_format() Function

PHP Date/Time PHP Date/Time Reference

Example

Return an associative array with detailed information about a specified date, according to the specified format:

<?php
print_r(date_parse_from_format("mmddyyyy","05122013"));
?>

Run example »

Definition and Usage

The date_parse_from_format() function returns an associative array with detailed information about a specified date, according to the specified format.


Syntax

date_parse_from_format(format,date);

Parameter Description
format Required. Specifies the format (a format accepted by date_create_from_format())
date Required. A string that specifies a date

Technical Details

Return Value: Returns an associative array containing information about the specified date on success
PHP Version: 5.3+


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 BUILDING

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

SHARE THIS PAGE

facebook