Blog Stats
  • Posts - 7
  • Articles - 1
  • Comments - 1
  • Trackbacks - 9

 

Friday, February 10, 2006

SmallDateTime Conversion

    Public Overrides Sub Input0_ProcessInputRow(ByVal Row As Input0Buffer)
        If String.IsNullOrEmpty(Row.Date.Trim()) Then
            Row.NewDate_IsNull = True
        Else
            Row.NewDate = DateTime.Parse(Row.Date)
        End If
        If String.IsNullOrEmpty(Row.Age.Trim()) Then
            Row.NewAge_IsNull = True
        Else
            Row.NewAge = Int32.Parse(Row.Age)
        End If
    End Sub
 

 

Copyright © Kent Tegels