diff --git a/src/@dates/dates.m b/src/@dates/dates.m
index 6694253e7dcad0664b90657399b0c60fa2fa38d1..d5da4746f20226e9737c1f76a16f191a7ab2154b 100644
--- a/src/@dates/dates.m
+++ b/src/@dates/dates.m
@@ -1,6 +1,6 @@
 classdef dates<handle
 
-% Copyright (C) 2014 Dynare Team
+% Copyright (C) 2014-2015 Dynare Team
 %
 % This code is free software: you can redistribute it and/or modify
 % it under the terms of the GNU General Public License as published by
@@ -88,7 +88,7 @@ classdef dates<handle
                     o.freq = varargin{1};
                 end
                 if isequal(o.freq, 1)
-                    if (isnumeric(varargin{2}) && isvector(varargin{2}) && isint(varargin{2}))
+                    if (isnumeric(varargin{2}) && isvector(varargin{2}) && all(isint(varargin{2})))
                         o.time = [varargin{2}, ones(length(varargin{2}),1)];
                         o.ndat = size(o.time,1);
                         return
@@ -263,4 +263,4 @@ end % classdef
 %$ end
 %$
 %$ T = all(t);
-%@eof:8
\ No newline at end of file
+%@eof:8