- Public Function DatePandore(mydate As string) as Date
- 'Conversion au format date
- On Error GoTo err_Date
- If IsNull(mydate) Then
- DatePandore = ""
- Else
- DatePandore = Right(mydate, 2) & "/" & Mid(mydate, 5, 2) & "/" & Left(mydate, 4)
- End If
- exit_err:
- Exit Function
- err_Date:
- MsgBox "L'erreur suivante :" & vbCrLf & Err.Number & " " & Err.Description & vbCrLf & _
- "s'est produite dans la fonction DatePandore", vbCritical, "NetJoao"
- Resume exit_err
- End Function
Public Function DatePandore(mydate As string) as Date
'Conversion au format date
On Error GoTo err_Date
If IsNull(mydate) Then
DatePandore = ""
Else
DatePandore = Right(mydate, 2) & "/" & Mid(mydate, 5, 2) & "/" & Left(mydate, 4)
End If
exit_err:
Exit Function
err_Date:
MsgBox "L'erreur suivante :" & vbCrLf & Err.Number & " " & Err.Description & vbCrLf & _
"s'est produite dans la fonction DatePandore", vbCritical, "NetJoao"
Resume exit_err
End Function