The getline works but, I need to be able to calculate time days between a date the user inputs and the date here. AKA the first few characters in the line. I have tried to use assign and store them to arrays, which works great expect for sometimes the month is 1 or it could be 10, 11 or 12 and then assign does not work correctly.
I have also tried strchr which does not work. My code looks like this, I think the way is to use pointers, I have looked all over and I cannot find a way to do it, especially be able to find the second delimiter.