php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "date string"

What are some common methods to convert a string date like '01.01.2004' to the default MySQL date format '2004-01-01' in PHP?

When converting a string date like '01.01.2004' to the default MySQL date format '2004-01-01' in PHP, you can use the DateTime class to parse the stri...

What is the best way to convert a date string from one format to another in PHP?

When converting a date string from one format to another in PHP, you can use the DateTime class to parse the original date string and then format it t...

How can a string be converted into a date in PHP for use in MySQL queries?

To convert a string into a date in PHP for use in MySQL queries, you can use the strtotime() function to parse the string and then the date() function...

How can the date and time be extracted from a timecode string in PHP?

To extract the date and time from a timecode string in PHP, you can use the DateTime class to parse the timecode string and then retrieve the date and...

What function can be used to convert a date string into a specific format in PHP?

To convert a date string into a specific format in PHP, you can use the `DateTime` class along with the `format()` method. This method allows you to s...

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.