[]
        
(Showing Draft Content)

FarPoint.Win.SuperEdit.GeneralFormatter.ConvertDateTimePartsToValue

ConvertDateTimePartsToValue Method

ConvertDateTimePartsToValue(FpseDecodeParameters, int, int, int, out object)

Given the date and time parts, convert to date and time values.

Declaration
protected virtual int ConvertDateTimePartsToValue(GeneralFormatter.FpseDecodeParameters pParams, int lCurrYear, int lCurrCentury, int usCentSplitYear, out object retDateTimeObj)
Protected Overridable Function ConvertDateTimePartsToValue(pParams As GeneralFormatter.FpseDecodeParameters, lCurrYear As Integer, lCurrCentury As Integer, usCentSplitYear As Integer, ByRef retDateTimeObj As Object) As Integer
Parameters
Type Name Description
GeneralFormatter.FpseDecodeParameters pParams

Decode parameters

int lCurrYear

Current year

int lCurrCentury

Current century

int usCentSplitYear

Century split year

object retDateTimeObj

Return date time

Returns
Type Description
int

bit flag about the results of the conversion: fpseDecodeDateResultsMask 0x03 (bits 0 and 1) FPSE_DECODE_NODATE 0x00 // no date specified in string fpseDecodeInvalidDate 0x01 // date specified but invalid fpseDecodeValidDate 0x02 // specified and valid

           fpseDecodeTimeResultsMask   0x0C  (bits 3 and 4)
           FPSE_DECODE_NOTIME            0x00  // no time specified in string
           fpseDecodeInvalidTime       0x04  // time specified but invalid
           fpseDecodeValidTime         0x08  // specified and valid