VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Convert Complex DateString To Date Type

by Gehan Fernando (47 Submissions)
Category: String Manipulation
Compatability: VB.NET
Difficulty: Unknown Difficulty
Originally Published: Wed 24th September 2008
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Convert Complex DateString To Date Type

Rate Convert Complex DateString To Date Type




Function WMIDateToString(ByVal dtmDate)

        WMIDateToString = CDate(Mid(dtmDate, 5, 2) & "/" & _
                          Mid(dtmDate, 7, 2) & "/" & _
                          Microsoft.VisualBasic.Left(dtmDate, 4) & " " & _
                          Mid(dtmDate, 9, 2) & ":" & _
                          Mid(dtmDate, 11, 2) & ":" & _
                          Mid(dtmDate, 13, 2))

    End Function

Download this snippet    Add to My Saved Code

Convert Complex DateString To Date Type Comments

No comments have been posted about Convert Complex DateString To Date Type. Why not be the first to post a comment about Convert Complex DateString To Date Type.

Post your comment

Subject:
Message:
0/1000 characters