PHP convert date format dd/mm/yyyy => yyyy-mm-dd [duplicate]
问题 Possible Duplicate: PHP Date String Format I am trying to convert a date from dd/mm/yyyy => yyyy-mm-dd . I have using the mktime() function and other functions but I cannot seem to make it work. I have managed to explode the original date using \'/\' as the delimiter but I have no success changing the format and swapping the \'/\' with a \'-\' . Any help will be greatly appreciated. 回答1: Dates in the m/d/y or d-m-y formats are disambiguated by looking at the separator between the various