$sql = "insert into test (one, two, three) VALUES (?,?,str_to_date(?, '%Y-%m-%d %h:%i:%s %p'))"; @params = ('4', '5', $time_value);