php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "Y-m-d"

How can one troubleshoot receiving a result of -1 when using strtotime() in PHP?

When receiving a result of -1 when using strtotime() in PHP, it typically means that the date string passed to strtotime() is not in a valid format. T...

What is the best practice for handling dates in MySQL queries within PHP?

When handling dates in MySQL queries within PHP, it is best practice to use the MySQL date format 'Y-m-d' to ensure compatibility and accuracy. This f...

How can the `date()` function in PHP be properly utilized to display dates in different formats, especially when dealing with timestamps like 01.01.1970?

When dealing with timestamps like 01.01.1970 in PHP, the `date()` function can be utilized to format and display dates in different formats. To displa...

What is the purpose of the function datumformatieren in the given PHP code?

The purpose of the function datumformatieren in the given PHP code is to format a date string from the format "Y-m-d" to "d.m.Y". To solve this issue...

How can I ensure that dates are correctly stored and retrieved from a MySQL database in PHP?

When storing dates in a MySQL database using PHP, it is important to use the correct date format and data type to ensure accurate storage and retrieva...

Showing 16 to 20 of 577 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 115 116 ›
PHP.ORG

A free knowledge base for PHP developers. Open to all.

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.