php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "format dates"

How can PHP be used to format dates for MySQL storage?

When storing dates in MySQL, it is important to format them correctly to ensure proper storage and retrieval. PHP provides the `date()` function to fo...

How can PHP developers format dates in a specific language and custom format?

To format dates in a specific language and custom format in PHP, developers can use the setlocale() function to set the desired language and the strft...

What is the correct format for sorting dates in MySQL queries in PHP?

When sorting dates in MySQL queries in PHP, it is important to use the correct date format to ensure accurate sorting. The recommended date format for...

What is the recommended format for dates in MySQL to ensure correct sorting?

When storing dates in MySQL, it is recommended to use the "YYYY-MM-DD" format to ensure correct sorting. This format follows the ISO 8601 standard and...

How can the DateTime class be utilized to format dates in PHP?

To format dates in PHP using the DateTime class, you can create a new DateTime object with the date you want to format, and then use the format() meth...

Showing 1 to 5 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.