Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win.SuperEdit Namespace / GeneralFormatter Class / ConvertDatePartsToValue Method
Decode parameters
Current year
Current century
Century split year
Return date time


In This Topic
    ConvertDatePartsToValue Method
    In This Topic
    Given the date parts, convert to a date value.
    Syntax
    'Declaration
     
    
    Protected Overridable Function ConvertDatePartsToValue( _
       ByVal pParams As GeneralFormatter.FpseDecodeParameters, _
       ByVal lCurrYear As Integer, _
       ByVal lCurrCentury As Integer, _
       ByVal usCentSplitYear As Integer, _
       ByRef dtRetDate As Date _
    ) As Boolean
    'Usage
     
    
    Dim instance As GeneralFormatter
    Dim pParams As GeneralFormatter.FpseDecodeParameters
    Dim lCurrYear As Integer
    Dim lCurrCentury As Integer
    Dim usCentSplitYear As Integer
    Dim dtRetDate As Date
    Dim value As Boolean
     
    value = instance.ConvertDatePartsToValue(pParams, lCurrYear, lCurrCentury, usCentSplitYear, dtRetDate)

    Parameters

    pParams
    Decode parameters
    lCurrYear
    Current year
    lCurrCentury
    Current century
    usCentSplitYear
    Century split year
    dtRetDate
    Return date time

    Return Value

    true if the date parts could be converted to a date value; false otherwise
    See Also