php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "date value"

What is the best way to convert a time value stored in MySQL to a specific date format in PHP?

To convert a time value stored in MySQL to a specific date format in PHP, you can use the date() function in PHP along with strtotime() to convert the...

What is the recommended approach for converting a datetime value to a specific date format in PHP?

When converting a datetime value to a specific date format in PHP, the recommended approach is to use the `DateTime` class along with the `format()` m...

What are the potential pitfalls of using "0000-00-00" as a default date value in MySQL and how can it be improved?

Using "0000-00-00" as a default date value in MySQL can cause issues with date calculations and comparisons, as it is not a valid date. To improve thi...

What is the difference between using substr() and DateTime for extracting the year from a date value in PHP?

When extracting the year from a date value in PHP, using substr() involves manually manipulating the date string to extract the year, which can be err...

What PHP function can be used to convert a Unix time value into a specific date format?

To convert a Unix time value into a specific date format in PHP, you can use the `date()` function. This function allows you to format a Unix timestam...

Showing 11 to 15 of 10000 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 1999 2000 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • Privacy
  • FAQ

© 2025 php.org. All rights reserved.