function [outflag,absflag] = tsIsDateFormat(thisstr)
%TSISDATEFORMAT Utility to detect if a string is a valid data format
%
%   Author(s): James G. Owen
%   Copyright 1986-2003 The MathWorks, Inc.
%   $Revision: 1.1.6.1 $ $Date: 2004/12/26 21:46:08 $

%% Intialize outputs
outflag = false;
absflag = false;

%% Find datastr
[strs,absstat] = tsgetDateFormat;
% cae insensitive
I = find(strcmpi(thisstr,strs));

%% Return status'
if length(I)>0
    outflag = true;
    absflag = absstat{I(1)};
end