php.org PHP Logo
Beginner Intermediate Advanced

Search results for: ""Y" format"

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 `...

How can PHP be used to properly format dates retrieved from a database for display?

When retrieving dates from a database in PHP, they are often in a standardized format like 'YYYY-MM-DD'. To properly format these dates for display, y...

What is the best way to format a date output in PHP, specifically in Joomla?

When formatting a date output in PHP, specifically in Joomla, the best way is to use the `JHtml::date` function provided by Joomla. This function allo...

How can PHP be used to format timestamps for database entries?

When inserting timestamps into a database using PHP, it is important to format the timestamp in a way that the database can understand and store corre...

How can PHP's date function be utilized to format dates in a specific way?

To format dates in a specific way using PHP's date function, you can specify the desired format using format characters such as 'Y' for the year, 'm'...

Showing 41 to 45 of 10000 results

‹ 1 2 ... 6 7 8 9 10 11 12 ... 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.