i have a bunch of strings like this: s = 3851102123
objective would be to extract the date from it
in example:
85 is year
11 is month
02 is day
basically string indexes 1,2 = year, 3,4 = month, 5,6 = day
rest can be discarded, this is what i came up with:
>> x = datetime.strptime("3851102123", ??)
How would one extract the proper indexes?
Should i use regular expressions inside the parentheses to get the date out and then reformat the string ?
Output should like this:
>> 02.11.1985