PHP date_parse() function

PHP date_modify() function
PHP date_offset_get() function

In this article, you will learn how to get detailed information about the date. The date_parse() function returns detailed information such as Day, Month, Year, Hours, Minutes, Seconds, locale, and some other parameters from the specified date.

The result is in the form of an associative array.

What is the syntax of the date_parse() function in PHP?

date_parse(date)
ParameterDetails
dateThe date in format that is accepted by strtotime() function – Required
PHP date_parse() method

Examples of the date_parse() function

Example 1. In the following example, we simply parsed a date.

<?php
print_r(date_parse("2014-07-11 12:10:45"));
?>
PHP date_modify() function
PHP date_offset_get() function
en English
X
Scroll to Top