diff --git a/include/class.format.php b/include/class.format.php
index 27497d3d32b15346f997ea63eb5bd4b0a276d6f8..de7bc98bbd0d409de7ed45c0ac0c09f45a7ba9ea 100644
--- a/include/class.format.php
+++ b/include/class.format.php
@@ -609,7 +609,7 @@ class Format {
         return $tz;
     }
 
-    function parseDatetime($date, $locale=null, $format=false) {
+    function parseDateTime($date, $locale=null, $format=false) {
         global $cfg;
 
         if (!$date)
diff --git a/include/class.forms.php b/include/class.forms.php
index a1d7a331d9a2b73889834babfba673ca4e9cc405..954ea2581b0f5bbc5e92db32abd06f8e9e85102d 100644
--- a/include/class.forms.php
+++ b/include/class.forms.php
@@ -1822,7 +1822,7 @@ class DatetimeField extends FormField {
     function display($value) {
         global $cfg;
 
-        if (!$value || !($datetime = Format::parseDatetime($value)))
+        if (!$value || !($datetime = Format::parseDateTime($value)))
             return '';
 
         $config = $this->getConfiguration();
@@ -1933,14 +1933,14 @@ class DatetimeField extends FormField {
 
         $config = $this->getConfiguration();
         parent::validateEntry($value);
-        if (!$value || !($datetime = Format::parseDatetime($value)))
+        if (!$value || !($datetime = Format::parseDateTime($value)))
             return;
 
         // Parse value to DateTime object
-        $val = Format::parseDatetime($value);
+        $val = Format::parseDateTime($value);
         // Get configured min/max (if any)
-        $min = $this->getMinDatetime();
-        $max = $this->getMaxDatetime();
+        $min = $this->getMinDateTime();
+        $max = $this->getMaxDateTime();
 
         if (!$val) {
             $this->_errors[] = __('Enter a valid date');