Spread Windows Forms 15.0
FarPoint.Win Assembly / FarPoint.Win.SuperEdit Namespace / GeneralFormatter Class / ConvertDateTimePartsToValue Method


In This Topic
    ConvertDateTimePartsToValue Method
    In This Topic
    Given the date and time parts, convert to date and time values.
    Syntax
    'Declaration
     
    
    Protected Overridable Function ConvertDateTimePartsToValue( _
       ByVal pParams As GeneralFormatter.FpseDecodeParameters, _
       ByVal lCurrYear As Integer, _
       ByVal lCurrCentury As Integer, _
       ByVal usCentSplitYear As Integer, _
       ByRef retDateTimeObj As Object _
    ) As Integer
    'Usage
     
    
    Dim instance As GeneralFormatter
    Dim pParams As GeneralFormatter.FpseDecodeParameters
    Dim lCurrYear As Integer
    Dim lCurrCentury As Integer
    Dim usCentSplitYear As Integer
    Dim retDateTimeObj As Object
    Dim value As Integer
     
    value = instance.ConvertDateTimePartsToValue(pParams, lCurrYear, lCurrCentury, usCentSplitYear, retDateTimeObj)

    Parameters

    pParams
    lCurrYear
    lCurrCentury
    usCentSplitYear
    retDateTimeObj

    Return Value

    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
    See Also