|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
DTS Help
Not sure if I should post this in the VB forum of the SQL forum but I'll try here since it's written in VB.
I am working on a DTS script and am stumped with a conversion of some data. My source data is a flat file csv. One of the fields contains strings that appear like this "20030608" These are dates and this example can be interpreted at June 8, 2003. The destination is a picklist by just month (we are not going to capture the actual day). So the destination looks something like this... DTSDestination("CFUsualDateCode") = 6 DTSDestination("CFUsualDateCodeName") = "June" How do I strip out the date from that string? |
|
#2
|
|||
|
|||
|
You can use mid(datestring, 5, 2) to pull just the "06" out of the string by it's position in the string.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > DTS Help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|