I have a string in yyyymmdd
format and need to pass that to a function which date type. I have also listed the definition of GetCP
function
Dim sp As String() = fName.Split(".")
Dim fdate As string = sp.Substring(0,8)
Dim dt As String = fDate
Library.GetCP(dt) '' getting an error here as the not the right format.
Friend Shared Function GetCP(ByVal TDate As Date) As String