Symphony Framework
ToDate Method
Symphony.dB.SQLSupport Namespace > Converters Class : ToDate Method
The value to convert to a DataTime.
the mask determining the inbound data. This is either YYYYMMDD or YYMMDD.
The key value of the data area being processed.
Optionally pass the name of the structure containing the data so enable better logging.
Conmvert a numeric value to a DateTime value.
Syntax

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).
Remarks
This static method allows for the convertion of YYYYMMDD and YYMMDD integer values to DateTime values. Any exceptions are recorded to the Symphony Event log. the passed in key value is the key value of the current data area containing the date value being converted. This helps to identify the problem data/record area when a convertion fails.

These methods are designed to be used by the Symphony.dB.SQLDispatcher class and not from user code.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Converters Class
Converters Members