function [strs,absstatus] = tsgetDateFormat
%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:18 $

datestrs = {'dd-mmm-yyyy HH:MM:SS',true;
'dd-mmm-yyyy',true;
'mm/dd/yy',true;     
'HH:MM:SS',false;    
'HH:MM:SS PM',false;
'HH:MM',false;     
'HH:MM PM',false;        
'dd/mm/yy',true;    
'mmm.dd,yyyy HH:MM:SS',true;
'mmm.dd,yyyy',true;
'mm/dd/yyyy',true;
'dd/mm/yyyy',true;
'yy/mm/dd',true;
'yyyy/mm/dd',true;    
'yyyy-mm-dd',true;
'yyyymmddTHHMMSS',true;
'yyyy-mm-dd HH:MM:SS',true};

strs = datestrs(:,1);
absstatus = datestrs(:,2);
