Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: david Panter
Added: Apr 29, 2019 8:42 AM
Views: 13
Tags: no tags
  1. $testdater = $mRecord['applastcom']; //set variable with db data
  2.        $str = str_replace('/', '-', $testdater); // replace / for - or strtotime wont work
  3.         $apptime = strtotime($str);  //convert string to strtotime variable