PHP date_parse_from_format() Function

PHP date_parse_from_format Function


Definition :

In php date_parse_from_format() Function is inbuilt function.The date_parse_from_format() Function is used to get information about given date detailed information about a specified date, according to the specified format: It accepts two parameters and returns associative array with detailed information about given date.
Syntax

date_parse_from_format(format, date)

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

GIven below example return an associative array with detailed information about a specified date, according to the specified format:

Output :