The Arduino isn't programmed using VB, and String is not a basic type (prior to 0019, anyway). So, we need to know just which definition of string you are referring to.
If it's a string as in NULL-terminated array of chars, strncpy can copy n characters from one array to another.
If it's a class, there should be a member in that class to extract a substring.
strncpy( yearString, timeString, 4); // copy the first four characters of timeString into the year string
year = atoi(yearString); // convert ASCII year string to integer and store in the year integer variable
Thanks once again by your greatful help
Best regards
Pedro Ferrer