DtvLong dal_bsf_chk_dat (str)

Checks the passed string for conformity using the mask date format either specified in the default value DATEFORMAT or via the function dal_bsf_set_dat.

Input Parameters Significance
char *str date string to be checked

Output Parameters Significance
none -

Return Code Significance
0 no error
1 wrong month name
2 wrong year
3 wrong month
4 wrong day
5 wrong hour
6 wrong minute
7 wrong second

DataView calls tis function by default when leaving a field of the date type.

For checking and correcting the date string the following rules apply:

For leading zeros make the string longer, you must not forget to dimension the string with the theoretic maximum length of 21 characters.