php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "datetime values"

What are the advantages of storing date values as DATETIME in MySQL for accurate sorting and display in PHP?

When storing date values in MySQL, using the DATETIME data type allows for accurate sorting and display in PHP. This is because DATETIME stores both d...

How can PHP be used to read and store date and time values in a format suitable for a datetime database field?

To read and store date and time values in a format suitable for a datetime database field in PHP, you can use the `DateTime` class to create a datetim...

Are there any built-in PHP functions or classes that can simplify the calculation of time differences between DateTime values?

Calculating time differences between DateTime values in PHP can be simplified by using the DateTime and DateInterval classes. By subtracting one DateT...

What are the best practices for retrieving and formatting datetime values directly from a database in PHP?

When retrieving datetime values directly from a database in PHP, it is important to handle the formatting correctly to display the date and time in th...

How can PHP's DateTime class be used to format dates for comparison with database values?

When comparing dates from a database with dates in PHP, it is important to ensure that the formats match. PHP's DateTime class can be used to format d...

Showing 31 to 35 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
  • FAQ

© 2025 php.org. All rights reserved.