web2000 Posted May 1, 2007 Share Posted May 1, 2007 Hi, Please can someone show me how to covert a US date to UK date eg mm/dd/yyyy to dd/mm/yyyy Thanks Link to comment https://forums.phpfreaks.com/topic/49414-covert-us-date-to-uk-date/ Share on other sites More sharing options...
jitesh Posted May 1, 2007 Share Posted May 1, 2007 $usdate = date("m/d/Y"); $uk_date_arr = explode("/",$usdate); $ukdate = $uk_date_arr[1]."/".$uk_date_arr[0]."/".$uk_date_arr[2]; Link to comment https://forums.phpfreaks.com/topic/49414-covert-us-date-to-uk-date/#findComment-242144 Share on other sites More sharing options...
nikkieijpen Posted May 1, 2007 Share Posted May 1, 2007 $usdate = date("m/d/Y"); $ukdate = date("d/m/Y", strtotime($usdate)); Link to comment https://forums.phpfreaks.com/topic/49414-covert-us-date-to-uk-date/#findComment-242167 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.