Hello, i am new to programming and VB.net any help will be appreciated.
I have a SQL database that i do not have a "write-access" to, the database has 2 columns that looks like this:
Date Time
20111025 0025
How do i create a new Column with VB, that will look like this:
Date/Time
10/25/2011 00:25
I could do this in MS Access with:
Date: CDate(mid([Date],5,2) & "/" & Mid([Date],7,2) & "/" & Left([Date],4))
Time: (Left([Time],2) & ":" & Mid([Time],3,2))
DateTime: [Date]&" "&[Time] 24 Hours
How do i do the same thing in VB.net, i would eventually want to use this Date/Time to calculate Distance.
Thanks,
July
I have a SQL database that i do not have a "write-access" to, the database has 2 columns that looks like this:
Date Time
20111025 0025
How do i create a new Column with VB, that will look like this:
Date/Time
10/25/2011 00:25
I could do this in MS Access with:
Date: CDate(mid([Date],5,2) & "/" & Mid([Date],7,2) & "/" & Left([Date],4))
Time: (Left([Time],2) & ":" & Mid([Time],3,2))
DateTime: [Date]&" "&[Time] 24 Hours
How do i do the same thing in VB.net, i would eventually want to use this Date/Time to calculate Distance.
Thanks,
July