   [web] PHP strtotime format problem
  I am trying to use strtotime() to convert a date into a timestamp for storage in a db. However the dates are in UK format, ie /DD/MM/YYYY, yet the function is treating them as US format MM/DD/YYYY and giving the wrong timestamp.How can I force the strtotime() to expect UK format dates?   
  I don't believe there is any way to do that. However, you could do something like:// explodelist($d,$m,$y) = explode('/',$date);$ts = mktime(0,0,0,$m,$d,$y);// regular expression versionif (preg_match('!([0-9]{1,2})/([0-9]{1,2})/([0-9]{2,4})!', $date, $matches)){  list(,$d,$m,$y) = $matches;  $ts = mktime(0,0,0,$m,$d,$y);}else  $ts = NULL;