php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "datetime"

How can the use of DateTime or format() from DateTime in PHP improve the readability and longevity of timestamp-based filenames?

Using DateTime or format() from DateTime in PHP can improve the readability and longevity of timestamp-based filenames by allowing you to easily forma...

What potential pitfalls should be considered when creating a DateTime string for MySQL in PHP?

When creating a DateTime string for MySQL in PHP, it is important to ensure that the format of the DateTime string is compatible with MySQL's datetime...

What are common pitfalls when mixing DateTime objects with strtotime in PHP?

When mixing DateTime objects with strtotime in PHP, a common pitfall is that strtotime expects a string input, not a DateTime object. To avoid this is...

What are some common errors that can occur when using DateTime objects in PHP?

One common error when using DateTime objects in PHP is providing an incorrect date format when creating a new DateTime object. To avoid this error, en...

How can PHP developers ensure accurate datetime output when retrieving values from a database with different formats?

When retrieving datetime values from a database with different formats, PHP developers can ensure accurate output by using the DateTime class to parse...

Showing 16 to 20 of 2664 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 532 533 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.