Input Parameters | Significance |
char flg |
control flag for formatting: 'M' = data base format into mask format 'D' = mask format into data base format |
char *inp | date input value |
Output Parameters | Significance |
char *out | date output value |
Return Code | Significance |
0 | no error |
1 | wrong format specified |
2 | wrong string length |
-1 | parameters are zero pointers |
The function expects a correct date string. For this reason you should always call the function dal_bsf_chk_dat before formatting the date string into mask format.
The data base format must correspond to the following convention:
The mask format must correspond to the format either defined in the DataView default value DATEFORMAT or as defined with the function dal_bsf_set_dat.
In the calling function have to be allocated 21 bytes storage place for date output value.
The pointer for date input and for output value can point to the same address.