A
ALESSANDRO Baraldi
Good Evening.
Some strange problem:
From MIME decodifie Mail message i get Time_Data_Reference
as String in this STANDARD way:
RIF.: "Sat, 12 Jun 2004 11:59:14 +0100 (CET)"
(Italian reference for the Time +0100)
Now i need to convert this Format in Data to allow to the code
the ORDER_BY (Data), so i CUT the string to allow the conversion:
I try with this:
Private Function retDate(strIn As String) As Date
On Error GoTo errData
Dim myStr As String
myStr = Mid$([Date], 6, Len([Date]) - 17)
'// This is the retturn of my CUT:
'// "12 Jun 2004 11:59:14" CleanString.
retDate = CDate(myStr)
'// Here i get an error and the convesion fail
'// Err n°13 Type not corresponding
Exit Function
errData:
MsgBox Err.Number & " " & Err.Description
End Function
Haveyou some suggestion or idea.....?
Some strange problem:
From MIME decodifie Mail message i get Time_Data_Reference
as String in this STANDARD way:
RIF.: "Sat, 12 Jun 2004 11:59:14 +0100 (CET)"
(Italian reference for the Time +0100)
Now i need to convert this Format in Data to allow to the code
the ORDER_BY (Data), so i CUT the string to allow the conversion:
I try with this:
Private Function retDate(strIn As String) As Date
On Error GoTo errData
Dim myStr As String
myStr = Mid$([Date], 6, Len([Date]) - 17)
'// This is the retturn of my CUT:
'// "12 Jun 2004 11:59:14" CleanString.
retDate = CDate(myStr)
'// Here i get an error and the convesion fail
'// Err n°13 Type not corresponding
Exit Function
errData:
MsgBox Err.Number & " " & Err.Description
End Function
Haveyou some suggestion or idea.....?