function dt = datetime2datenum (date, fmt)
dt = [];
for i=1:size(date,1),
    dt = [dt ; datenum(date(i,:),fmt)];
end
end