Home Tutorial Php Phpdate date_parse_from_format

 
 

date_parse_from_format
Posted on: August 26, 2009 at 12:00 AM
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));
?>

Advertisement

Related Tags for date_parse_from_format:


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.

Posted on: August 26, 2009

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com