PHP date formatting -


I want to change a date with this format: 01/07/09 this Jen 07.09.

How can I do PHP?

Use to parse the value you have found, then it will be used in the format you want To output:

  counter date ("MD, Y", striptime ("01/07 / 09", "D / M / Y"));  

If you are on Windows, or use a version of PHP where Stripp is not available (& lt; PHP 5.1.0), then its Use instead, but be careful to ensure that your date is in a US English format (i.e. "01/07/09" means 7 January 2009, not July 1, 2009).

In addition, if you are actually using jan mass , then use:

  Echo Stroller ( Date ("MD, Y", striptime ("01/07/09", "D / m / y"));  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -