Share on Google+Share on Google+

date_parse_from_format

Advertisement
This example informs you about date_parse_from_format function. Let's see how to using date_parse_from_format() in PHP?

 

date_parse_from_format

date_parse_from_format function returns associative array with detailed info about given date. It is used for accessing info about given date.

Description on PHP Date Parse Format

array date_parse_from_format ( string $format , string $date )

Parameters of Date Parse Function PHP

format - Format accepted by date() with some extras.

date - String representing the date.

Return Values

It returns associative array with detailed info about given date.

Examples

<?php
$date = "25.8.2009 17:00-03:00";
print_r(date_parse_from_format("j.n.Y H:iP", $date));
?>

Advertisements

Posted on: August 26, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.