diff --git a/library/Soliant/SimpleFM/Adapter.php b/library/Soliant/SimpleFM/Adapter.php
index <HASH>..<HASH> 100644
--- a/library/Soliant/SimpleFM/Adapter.php
+++ b/library/Soliant/SimpleFM/Adapter.php
@@ -306,7 +306,7 @@ class Adapter
         return (boolean) $this->sslverifypeer;
     }
 
-	/**
+    /**
      * @param boolean $sslverifypeer
      * @return \Soliant\SimpleFM\Adapter
      */
@@ -316,7 +316,7 @@ class Adapter
         return $this;
     }
 
-	/**
+    /**
      * @return the $port
      */
     public function getPort ()
@@ -968,6 +968,9 @@ class Adapter
         $commandstring = '';
         if(!empty($this->commandarray)){
             foreach ($this->commandarray as $name=>$value){
+                if ($value instanceof \Datetime) {
+                    $value = $value->format('m/d/Y H:i:s');
+                }
                 $commandstring .= ($value===null || $value == '') ? $amp.urlencode($name): $amp.urlencode($name).'='.urlencode($value);
                 $amp = '&';
             }
Allow for datetime objects when persisting