diff --git a/BaseLib/DateTools.cpp b/BaseLib/DateTools.cpp
index 02e4e55aca196c74ee0e5e0c63d8eb6a59ea03f7..37bf369e6691d2f95fe397198035812ab4222c32 100644
--- a/BaseLib/DateTools.cpp
+++ b/BaseLib/DateTools.cpp
@@ -12,6 +12,8 @@
  *
  */
 
+#include "DateTools.h"
+
 #include <cmath>
 #include <cstdlib>
 #include <iostream>
@@ -19,15 +21,13 @@
 // ThirdParty/logog
 #include "logog/include/logog.hpp"
 
-#include "DateTools.h"
-
 namespace BaseLib
 {
 int date2int(int y, int m, int d)
 {
 	if ( (y < 1000 || y > 9999) || (m < 1 || m > 12) || (d < 1 || d > 31) )
 	{
-		WARN("date2double(): Input not in expected range.");
+		WARN("date2int(): Input not in expected range.");
 		return 0;
 	}