php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "%Y"

What are common date formats used in PHP for storing dates in a MySQL database?

When storing dates in a MySQL database using PHP, it is important to use a common date format that MySQL understands. Two common date formats that can...

What are the best practices for converting date values to a specific format in PHP?

When converting date values to a specific format in PHP, the best practice is to use the DateTime class along with the format() method to ensure consi...

What are the differences in handling date formatting between MySQL and MSSQL servers in PHP?

When working with date formatting in PHP with MySQL and MSSQL servers, one key difference is the format used for dates. MySQL typically uses the forma...

In the context of PHP, how should variables like $Today be properly placed within a script for effective date display?

When displaying dates in PHP, it is important to properly format the date variable for the desired output. To display the current date, you can use th...

What is the appropriate format for passing the current date and time to be stored in a database column with DATETIME or DATE data type in PHP?

When storing the current date and time in a database column with DATETIME or DATE data type in PHP, you can use the `date()` function along with the `...

Showing 66 to 70 of 363 results

‹ 1 2 ... 11 12 13 14 15 16 17 ... 72 73 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.