About 1,030,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. Correctly determine if date string is a valid date in that format

    Oct 9, 2013 · I am currently using a regex to validate the string format, which works ok, but I can see some cases where it could be a correct format according to the string but actually an …

  4. Change the language for date in php - Stack Overflow

    Aug 2, 2011 · Date Formatter is a concrete class that enables locale-dependent formatting /parsing of dates using pattern strings and/or canned patterns. There are a couple of examples …

  5. How to format an UTC date to use the Z (Zulu) zone designator in …

    Jun 28, 2013 · Note that the accepted answer simply puts a "Z" on the end of the format string, but that does not give you the UTC date. This is likely to cause problems in many use cases …

  6. php - The date/time format used in HTTP headers - Stack Overflow

    Which RFC describes the format used for date/time in the modern time HTTP headers, like "Last-Modified" and "If-Modified-Since", and how to generate a date/time string in PHP according to …

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

  8. 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, …

  9. PHP date conversion dd [th/st/rd] / month / yyyy - Stack Overflow

    Nov 21, 2012 · I have my users entering the date in this format :- mm/dd/yyyy (11/21/2012) My PHP script converts the date into the following format :- dd-Month-yyyy (21-November-2012)

  10. php - Converting string to Date and DateTime - Stack Overflow

    Jun 4, 2011 · 376 If I have a PHP string in the format of mm-dd-YYYY (for example, 10-16-2003), how do I properly convert that to a Date and then a DateTime in the format of YYYY-mm-dd? …