php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "date and time."

How can timestamps be formatted to display date and time separately in PHP?

To display date and time separately from a timestamp in PHP, you can use the date() function with the 'Y-m-d' format for the date and the 'H:i:s' form...

What function can be used to format date and time in PHP?

To format date and time in PHP, you can use the date() function. This function allows you to specify a format string that defines how the date and tim...

What are some common pitfalls when using PHP date and time functions?

One common pitfall when using PHP date and time functions is not setting the correct timezone, which can lead to inaccurate date and time calculations...

What are common pitfalls when calculating date and time differences in PHP?

Common pitfalls when calculating date and time differences in PHP include not accounting for timezones, not using the correct date format, and not con...

What is the recommended way to handle time zones and daylight saving time in PHP date functions?

Handling time zones and daylight saving time in PHP date functions can be done by setting the default time zone using `date_default_timezone_set()` fu...

Showing 26 to 30 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.