public static Nullable<DateTime> ToDate( int dateValue, string dateMask, string keyValue, string structureName )
Parameters
- dateValue
- The value to convert to a DataTime.
- dateMask
- the mask determining the inbound data. This is either YYYYMMDD or YYMMDD.
- keyValue
- The key value of the data area being processed.
- structureName
- Optionally pass the name of the structure containing the data so enable better logging.
Return Value
The converted DateTime value (time will be zero).