About 1,070,000 results
Open links in new tab
  1. Convert a date format in PHP - Stack Overflow

    The PHP strtotime manual here states that "The function expects to be given a string containing an English date format". What it actually means is that it expects an American US date format, …

  2. PHP convert date format dd/mm/yyyy => yyyy-mm-dd

    I would recommend using a Unix Timestamp integer instead of a human-readable date format to handle time internally, then use PHP's date() function to convert the timestamp value into a …

  3. Convert one date format into another in PHP - Stack Overflow

    Easiest and simplest way to change date format in php In PHP any date can be converted into the required date format using different scenarios for example to change any date format into Day, …

  4. datetime - NOW () function in PHP - Stack Overflow

    Is there a PHP function that returns the date and time in the same format as the MySQL function NOW()? I know how to do it using date(), but I am asking if there is a function only for this.

  5. How to reformat date in PHP? - Stack Overflow

    Feb 17, 2016 · I am pulling the dates of various posts from a database. The dates are in the following format: 2009-08-12 Numeric Year - Numeric Month - Numeric Day How can I …

  6. date - How to get AM/PM from a datetime in PHP - Stack Overflow

    I have a date time in a variable. My format is 08/04/2010 22:15:00. I want to display this like 10.15 PM. How to do this in PHP?

  7. PHP date () format when inserting into datetime in MySQL

    Feb 7, 2010 · What is the correct format to pass to the date() function in PHP if I want to insert the result into a MySQL datetime type column? I've been trying date('Y-M-D G:i:s') but that just …

  8. How do I get the current date and time in PHP? - Stack Overflow

    Jan 23, 2009 · To get current datetime (now) with PHP, you can use the date class with any PHP version, or better the datetime class with PHP >= 5.2. Various date format expressions are …

  9. Getting date format m-d-Y H:i:s.u from milliseconds

    Jul 28, 2013 · Uses date to format the milliseconds into a date time string that DateTime can understand. DateTime() can then allow you to modify the time zone you are in, but ensure that …

  10. How to format date from timestamp in PHP? - Stack Overflow

    How to format date from timestamp in PHP? Asked 15 years, 2 months ago Modified 6 years, 4 months ago Viewed 48k times